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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Complete
    • 2.0.0.RC1
    • 2.0.0.RC2
    • GENERAL OBJECTS
    • 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

            jcgarcia Juan Carlos García del Canto
            rgause Robert Gause
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: