diff --git a/bookstore/src/main/java/com/fjordtek/bookstore/web/BookController.java b/bookstore/src/main/java/com/fjordtek/bookstore/web/BookController.java index 9222f27..1475d86 100644 --- a/bookstore/src/main/java/com/fjordtek/bookstore/web/BookController.java +++ b/bookstore/src/main/java/com/fjordtek/bookstore/web/BookController.java @@ -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(