From 2f9bfb19c70a2f6175fdc65195daf641a63881a9 Mon Sep 17 00:00:00 2001 From: Pekka Helenius Date: Sat, 19 Sep 2020 00:37:48 +0300 Subject: [PATCH] Add missing CRUD saving operation Signed-off-by: Pekka Helenius --- .../main/java/com/fjordtek/bookstore/web/BookController.java | 2 ++ 1 file changed, 2 insertions(+) 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; }