Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

spring 3

 
Arun Prasath
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?
 
Hong Anderson
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What controllers have been deprecated?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 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?

 
Vyas Sanzgiri
Ranch Hand
Posts: 686
Chrome Netbeans IDE 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
 
chris webster
Bartender
Posts: 2407
33
Linux Oracle Postgres Database Python Scala
  • 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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic