Uploaded image for project: 'Spring IDE'
  1. Spring IDE
  2. IDE-1224

New Spring Template Project for MVC missing annotation on Controller

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.8.0.RELEASE
    • Fix Version/s: None
    • Component/s: general
    • Environment:
      OSX 10.7.2

      Description

      When creating a new Spring Template Project with MVC, the generated HomeController is missing the annotation:
      @RequestMapping(value="/")
      on the class definition. When that class-level annotation is not present (the default), I get a 404 for the default context path, even though there is an annotation on the home method:
      @RequestMapping(value = "/", method = RequestMethod.GET)
      public String home(Locale locale, Model model)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jbayer James Bayer
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: