Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <security:authorize access="isAuthenticated()">
- <c:redirect url="/users/{userId}/{userName}"></c:redirect>
- </security:authorize>
- @Secured("ROLE_USER")
- @RequestMapping(value = "/users/{userId}/{userName}", method = RequestMethod.GET)
- public String showUserProfile(Model model,
- @PathVariable("userId") Long userId,
- @PathVariable("userName") String userName) {
- //TODO Do some thing here
- return "layout_user_profile";
- }
- http://localhost:8080/users/%7BuserId%7D/%7BuserName%7D
- HTTP Status 400 -
- description The request sent by the client was syntactically incorrect.
- <c:redirect url="/users/{userId}/{userName}"></c:redirect>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement