質問編集履歴

1

書式の修正

2022/08/07 13:34

投稿

massan728
massan728

スコア35

test CHANGED
File without changes
test CHANGED
@@ -14,7 +14,8 @@
14
14
 
15
15
  ### 該当のソースコード
16
16
 
17
+ ```Java
17
- ```Controller
18
+ Controller
18
19
  @GetMapping("/form")
19
20
  public String form(InventoryForm inventoryForm, Model model) {
20
21
  List<Product> prodList = productService.findAll();
@@ -48,7 +49,8 @@
48
49
  }
49
50
  ```
50
51
 
52
+ ```Java
51
- ```Form
53
+ Form
52
54
  public class InventoryForm {
53
55
 
54
56
  @NotNull(message ="商品名を選択してください。")
@@ -64,7 +66,8 @@
64
66
  private LocalDate reportDate;
65
67
  ```
66
68
 
69
+ ```HTML
67
- ```Thymeleaf
70
+ Thymeleaf
68
71
  <form method="POST" th:action="@{/inventory/insert}" th:object="${inventoryForm}">
69
72
  <table>
70
73
  <tr>
@@ -99,7 +102,8 @@
99
102
  </form>
100
103
  ```
101
104
 
105
+ ```Java
102
- ```Config
106
+ Config
103
107
  @ControllerAdvice
104
108
  public class WebMvcControllerAdvice {
105
109