I am maintaining a Spring 4.3 MVC app, upgrading it is a complicated and long term task. For my setup, XML-based, I did not find much on the internet, mostly Spring Boot stuff. I tried adding a @RestController in the current MVC app, but it did not work.
With @RestController in Spring 4.3, can it be used simultaneously with a Spring web-mvc controller in the same servlet (i.e. web.xml and business-servlet.xml), or must it be defined in a separate servlet which contains @RestControllers only?
<mvc:annotation-driven />to thebusiness-servlet.xml(and ofcourse adding the namespace to the XML file).DispatcherServletto start with how was this a Spring MVC application to start with?!