[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 757
  • Last Modified:

Spring MVC Annotated Controllers

I'm very new to spring mvc but not new to web development or the mvc design pattern.  I was running through the relatively straight-forward spring 2.5 beginners tutorial when at some point I discovered that 2.5 supports annotated controllers and request mappings (@Controller @RequestMapping) in lieu of xml cofiguration - a very attractive feature in my opinion.  However I'm having a very difficult time finding documentation that is complete on how to leverage this feature - I see a lot of partial instructions but none geared towards the spring mvc beginner.  Can anyone point me in the right direction?
0
superflie26
Asked:
superflie26
1 Solution
 
objectsCommented:
the problem you will have is that because annotations came along afterwards the annotation tutes all assume you already know how to use spring mvc without annotations.
so think you'll find you'll need to learn the two separately (which isn't such a bad thing)

http://blog.springsource.com/2007/11/14/annotated-web-mvc-controllers-in-spring-25/

0
 
superflie26Author Commented:
Thanks for the direction - I had seen that article previously and in fact had run through the step-by-step spring tutorial (with annotations) without any issues.  My biggest problem was trying to understand which build-path libraries were required to get annotations supported properly, I couldn't get it working properly.  Although I do agree with your answer.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now