This week's book giveaway is in the Cloud forum.
We're giving away four copies of Terraform in Action and have Scott Winkler on-line!
See this thread for details.
Win a copy of Terraform in Action this week in the Cloud 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Spring In Action 3 Book Question

 
Ranch Hand
Posts: 426
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
author
Posts: 422
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic