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 e8d78a0..0e76969 100644 --- a/bookstore/src/main/java/com/fjordtek/bookstore/web/BookController.java +++ b/bookstore/src/main/java/com/fjordtek/bookstore/web/BookController.java @@ -127,6 +127,8 @@ public class BookController { httpServerLogger.log(requestData, responseData); + bookRepository.save(book); + return "redirect:" + bookListPageView; }