my dog learned polymorphism
The moose likes Spring and the fly likes spring 3 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "spring 3" Watch "spring 3" New topic

spring 3

Arun Prasath
Ranch Hand

Joined: May 23, 2007
Posts: 80

why so many controllers in spring MVC have been deprecated?
Hong Anderson
Ranch Hand

Joined: Jul 05, 2005
Posts: 1936
What controllers have been deprecated?

SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

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.

[My Blog]
All roads lead to JavaRanch
Arun Prasath
Ranch Hand

Joined: May 23, 2007
Posts: 80
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

Joined: Jun 16, 2007
Posts: 686

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

===Vyas Sanzgiri===
My Blog
chris webster

Joined: Mar 01, 2009
Posts: 2296

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!

No more Blub for me, thank you, Vicar.
I agree. Here's the link:
subject: spring 3
jQuery in Action, 3rd edition