posted 5 years ago
Earlier I asked a question -- Does Spring evolution support mixture of XML configuration (older version) and annotation based (newer). And I think I got answer YES from people, some even said XML config overrides annotation if there is conflict. Now I find for some older Spring code that use "SimpleFormController" and XML config it is no longer supported after Spring 3.x. The compilation complains about @SImpleFormController not found.. So I have to use @Controller for the class and stop having the class extends SimpleFormController.
1.Besides changing it to @Controller, do I really need to add @RequestMapping annotation for the class ? If the XML configuration is still supported, then why do I need to add @RequestMapping ? That info should be captured in XML.
2. What else do I need to change in the class that extends SimpleFormController other than adding annotation @Controller ?
Thanks