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

Thymeleaf view name mapping has a leading "/" for list views

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 2.0.0.RC1
    • Fix Version/s: 2.0.0.RC2
    • Component/s: GENERAL OBJECTS
    • Labels:
    • Environment:
      OSX 10.12.6
      Java 1.8.0_112
      Maven 3.5.0
      Spring Roo 2.0.0.RC1

      Description

      For an entity CustomerType, an aspect called CustomerIdTypesCollectionThymeleafController_Roo_Thymeleaf is generated.

      The aspect has a list handling method:

      @GetMapping(name = "list")
      public ModelAndView CustomerIdTypesCollectionThymeleafController.list(Model model)

      { return new ModelAndView("/customeridtypes/list"); }

      It should generate as:

      @GetMapping(name = "list")
      public ModelAndView CustomerIdTypesCollectionThymeleafController.list(Model model)

      { return new ModelAndView("customeridtypes/list"); }

      The leading slash works when the app is run via "mvn spring-boot run", but not when the app is run via the exec-jar. Removing the leading "/" corrects this.

      Thanks,
      Bob

        Attachments

          Activity

            People

            • Assignee:
              jcgarcia Juan Carlos GarcĂ­a del Canto
              Reporter:
              rgause Robert Gause
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: