Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-17447

Add Path to @Controller

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Web

      Description

      Instead of:

      @RestController

      @RequestMapping("/api/")

      It would be cleaner to do this:

      @RestController("/api/")

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              juergen.hoeller Juergen Hoeller
              Reporter:
              gabrielbb GabrielBB
              Last updater:
              Spring Issues Spring Issues
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 23 weeks, 6 days ago