Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-183

Allow for user-configured controller paths

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0.RC1
    • Fix Version/s: 1.0.0.RC2
    • Component/s: WEB MVC
    • Labels:
      None

      Description

      When I create controllers I am bound to use the path chosen by Roo. Changing the @RequestMapping at the class-level does not allow for remapping the controller to a different URL because the methods created by Roo all specify their own full path.

      Maybe a solution would be to remove the @RequestMapping from the Roo aspect? Then changing the mapping at the class level would allow for the user to move controllers to different paths. Another option would be to add a -path option to the "new controller automatic" command.

      The reason I want to be able to change the mappings is to make it easier to separate all controllers for an administration-panel (those are most easily generated by Roo) to separate /admin/someEntity paths instead of just /someEntity. This simplifies Spring Security and Sitemesh configuration.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sschmidt Stefan Schmidt
              Reporter:
              tomas Tomas Salfischberger
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: