File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Spring and the fly likes Spring In Action 3 Book Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring In Action 3 Book Question" Watch "Spring In Action 3 Book Question" New topic

Spring In Action 3 Book Question

Mark Reyes
Ranch Hand

Joined: Jul 09, 2007
Posts: 426
Hi Sir,

Is the chapter on Spring MVC explains why Spring 3 opted out to use annotations over the concrete controller classes?

I must admit, I am still new in the process of learning the Spring framework and I am only able to create fairly simple apps but that is still Spring 2.5 since spring 3 is not yet officially release.

I got these questions because I am seeing some threads (here in javaranch and other forums) that discusses between annotations and xml configuration but I dont give any thoughts about it then since most of the online docs and google search that I am seeing are using xml files.

Now that spring 3 is offcially release, I would like to officially know if your book covers this topic.

Sean Clark ---> I love this place!!!
Me ------> I definitely love this place!!!
Craig Walls
Ranch Hand

Joined: Sep 19, 2003
Posts: 335
The MVC chapter will focus primarily on the annotation MVC model. That's because (1) it is better than the old style and (2) the old style MVC will eventually be deprecated and will go away.

The controller-class-hierarchy model (hereafter known as "Old MVC") was a bit more heavyweight in that controller implementations had to extend certain classes, implement certain methods, and those methods had to take certain arguments. The annotated model (hereafter known as "Spring @MVC") is a lot less demanding. In fact, it's *VERY* flexible with regard to how you write controllers. And, once you strip away the annotations, most Spring @MVC controllers are just POJOs and are therefore much easier to test.

Spring in Action - Unleash POJO power in your applications!
Modular Java - Discover the secret weapon to modularity on the Java platform!
XDoclet in Action - Your complete guide to code generation with XDoclet.
I agree. Here's the link:
subject: Spring In Action 3 Book Question
It's not a secret anymore!