Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

SimpleFormController deprecated

Posts: 28
  • Mark post as helpful
  • send pies
  • 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 ?

We begin by testing your absorbancy by exposing you to this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!