Spring MVC Annotated Controllers

Posted on 2009-04-18
Last Modified: 2013-11-11
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?
Question by:superflie26
    LVL 92

    Accepted Solution

    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)


    Author Closing Comment

    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.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    nested interface 5 29
    for loop with Set 4 38
    firstChar challenge 13 56
    What is the latest versions eclipse neon 2 57
    Recently I spent hours debugging an issue in a Rails project where ActiveRecord was causing MySQL errors trying to create a User object of a class at the top level of a Single Table Inheritance model structure.  It turns out `.create` behaves differ…
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    The viewer will learn how to implement Singleton Design Pattern in Java.
    This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

    731 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now