79828530

Date: 2025-11-24 10:50:57
Score: 1
Natty:
Report link

Yes, in Spring Framework 4.3 with XML config, you can use @RestController and traditional @Controller together in the same servlet. Just make sure <mvc:annotation-driven /> and component scanning are enabled. No need for a separate servlet.

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @RestController
  • User mentioned (0): @Controller
  • Single line (0.5):
  • Low reputation (1):
Posted by: Yassine Hamdouni