Browse Source

Redirect invalid URL requests to default page by default. Do not filter

these invalid requests by specific HTTP method types
Signed-off-by: Pekka Helenius <fincer89@hotmail.com>
v0.0.1-alpha
Pekka Helenius 4 years ago
parent
commit
1eecc28e54
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      bookstore/src/main/java/com/fjordtek/bookstore/web/BookController.java

+ 3
- 3
bookstore/src/main/java/com/fjordtek/bookstore/web/BookController.java View File

@ -212,11 +212,11 @@ public class BookController {
// Other URL requests
@RequestMapping(
value = "*",
method = { RequestMethod.GET, RequestMethod.POST }
value = "*"
)
public String errorWebForm(HttpServletRequest requestData) {
return httpExceptionHandler.notFoundErrorHandler(requestData);
//return httpExceptionHandler.notFoundErrorHandler(requestData);
return "redirect:" + bookListPageURL;
}
@RequestMapping(


Loading…
Cancel
Save