[add] 新規図書登録画面→登録確認画面作成
This commit is contained in:
@@ -0,0 +1,14 @@
|
|||||||
|
package com.example.demo.controller;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
|
||||||
|
@Controller
|
||||||
|
public class BookInsertConfirmController {
|
||||||
|
@GetMapping("/bookInsertConfirm")
|
||||||
|
public String bookInsertConfirm() {
|
||||||
|
return "bookInsertConfirm";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
package com.example.demo.controller;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
|
||||||
|
@Controller
|
||||||
|
public class BookInsertController {
|
||||||
|
@GetMapping("bookInsert")
|
||||||
|
public String bookInsert() {
|
||||||
|
return "bookInsert";
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
15
src/main/resources/templates/bookInsert.html
Normal file
15
src/main/resources/templates/bookInsert.html
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>新規図書登録</title>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<h1>新規図書登録入力</h1>
|
||||||
|
<form action="/bookInsertConfirm" method="GET">
|
||||||
|
<input type="submit" value="確認画面へ" class="btn">
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
13
src/main/resources/templates/bookInsertConfirm.html
Normal file
13
src/main/resources/templates/bookInsertConfirm.html
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>登録内容確認</title>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<h1>登録内容確認</h1>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user