Announcement Announcement Module
Collapse
No announcement yet.
Spring adds a slash ("/") in middle of my URL, making my GET to break Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring adds a slash ("/") in middle of my URL, making my GET to break

    I have a URL http://localhost:8080/semester?requestid=15918
    When I call this url I had to login and it works fine.
    But the URL in my browser is now changed to http://localhost:8080/semester/?requestid=15918
    ... /? ... this is not a valid URL.
    When I do reload I comes to my default page insted of the wanted URL.

    <filter-mapping>
    <filter-name>springSecurityFilterChain</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>

    <servlet-mapping>
    <servlet-name>appServlet</servlet-name>
    <url-pattern>/</url-pattern>
    </servlet-mapping>

    @RequestMapping(value="/", method= RequestMethod.GET)
    public ModelAndView index(@RequestParam(value = "resetStorage", defaultValue = "false") boolean resetStorage, @RequestParam(value="requestId", required=false) Integer requestId ) {

    Does anyone have a clue what is wrong?

    / Peter
Working...
X