Win a copy of Transfer Learning for Natural Language Processing (MEAP) this week in the Artificial Intelligence and Machine Learning 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 ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

spring 3

 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

why so many controllers in spring MVC have been deprecated?
 
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What controllers have been deprecated?
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Spring is getting towards more annotation style of coding. It introduces the @Controller annotation to define controllers. If you use this annotation, you don't need to extend any of the controller classes. This annotation was there in 2.5, but the Spring team has decided to deprecate the classes in 3.0, to favor the MVC annotations.
 
Arun Prasath
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply.

what do we gain from this annotation kind of coding other than easing the development or coding?

isn't it difficult to find out the project information if everything in mvc is annotated?

I would prefer to use application context xml in this case.. because that gives the good idea about how the MVC flow in my application.

Could you tell me why annotation style is preferred over xml configuration?

 
Ranch Hand
Posts: 686
Netbeans IDE Chrome Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree Spring has still a long way to go for stabilization. The web services front, I tried code from the tutorials and books and looks like the methods don't even exist any more!!

But talking about annotations, Spring recommends annotations over XML configuration
 
Bartender
Posts: 2407
36
Scala Python Oracle Postgres Database Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In case anybody is interested, there is a video called "Spring Framework 3.0, The Next Generation" on the excellent InfoQ website, introducing some of the new features in Spring 3 and relating them to Spring 2.5 and Java 5/6. The video is an hour and 15 minutes long, so get yourself a cup of coffee and make yourself comfortable!
 
Hot dog! An advertiser loves us THIS much:
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic