Announcement Announcement Module
Collapse
No announcement yet.
Spring @RequestMapping with multiline issue Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring @RequestMapping with multiline issue

    Is it possible for @RequestMapping to receive a value which has a multi line character?

    e.g. of mapping
    Code:
    @RequestMapping("/add/message/{message:.*}")
    public void addMessage(@PathVariable("message") String message) {
        ...
    }
    I have been trying to test it with something like "this is message\n and new line"

    I always received error org.springframework.web.servlet.PageNotFound exception

    Thanks for any suggestion beforehand
Working...
X