diff --git a/src/main/java/com/example/demo/controller/BookApprovalController.java b/src/main/java/com/example/demo/controller/BookApprovalController.java new file mode 100644 index 0000000..3333ce7 --- /dev/null +++ b/src/main/java/com/example/demo/controller/BookApprovalController.java @@ -0,0 +1,23 @@ +package com.example.demo.controller; + +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.SessionAttributes; + +@Controller +@SessionAttributes("bookApprovalForm") //セッションに保存 +public class BookApprovalController { + + @GetMapping("/bookApproval") + public String bookApproval() { + return "bookApproval"; + } + + @PostMapping("/bookApprovalConfirm") + public String bookApprovalConfirm() { + return "bookApprovalConfirm"; + } +} + + diff --git a/src/main/resources/templates/bookApproval.html b/src/main/resources/templates/bookApproval.html new file mode 100644 index 0000000..bfaba5f --- /dev/null +++ b/src/main/resources/templates/bookApproval.html @@ -0,0 +1,1203 @@ + + + +
+ + + +