How to handle requests that includes forward slashes (/)?

Another way I do is:

@RequestMapping(value = "test_handler/**", method = RequestMethod.GET)

…and your test handler can be “/test_hanlder/a/b/c” and you will get the whole value using following mechanism.

requestedUri = (String) 
request.getAttribute(HandlerMapping.PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE);

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)