• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SimpleFormController deprecated

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic