• 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

spring 3

 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
This is my favorite show. And this is my favorite tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic