Spring Tool Suite
  1. Spring Tool Suite
  2. STS-2103

RequestMappings view does not seem to correctly identify methods when @RequestMapping is declared at a class level

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7.1.RELEASE
    • Fix Version/s: 2.8.0.RELEASE
    • Component/s: UI
    • Labels:
    • Environment:

      Eclipse Indigo
      Windows 7 Pro 64-bit
      Java 1.6.0_26 (64-bit)
      Spring 3.0.6

      Description

      I noticed this morning that the @RequestMappings view does not correctly display resource url and request method when an @RequestMapping annotation is configured at the class level.

      It appears that order is critical and only certain items are respected.

      1. BadConfig-1-RequestMappings.PNG
        7 kB
      2. BadConfig-1-Source.PNG
        23 kB
      3. BadConfig-2-RequestMappings.PNG
        6 kB
      4. BadConfig-2-Source.PNG
        23 kB
      5. GoodConfig-1-RequestMappings.PNG
        7 kB
      6. GoodConfig-1-Source.PNG
        24 kB

        Activity

        Hide
        David G added a comment -

        Good configuration 1 Source & Request Mappings

        Show
        David G added a comment - Good configuration 1 Source & Request Mappings
        Hide
        David G added a comment -

        Bad configuration 1 Source & Request Mappings

        Show
        David G added a comment - Bad configuration 1 Source & Request Mappings
        Hide
        David G added a comment -

        Bad configuration 2 Source & Request Mappings

        Show
        David G added a comment - Bad configuration 2 Source & Request Mappings
        Hide
        Martin Lippert (c) added a comment -

        Leo, can you take a look at this?

        Show
        Martin Lippert (c) added a comment - Leo, can you take a look at this?
        Hide
        Leo Dos Santos (c) added a comment -

        Fixed for the 2.8 release

        Show
        Leo Dos Santos (c) added a comment - Fixed for the 2.8 release
        Hide
        David G added a comment -

        Thanks Leo!

        Show
        David G added a comment - Thanks Leo!

          People

          • Assignee:
            Leo Dos Santos (c)
            Reporter:
            David G
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              First Response Date: