回答編集履歴

1

誤字修正

2024/03/08 23:26

投稿

IT001
IT001

スコア618

test CHANGED
@@ -1,4 +1,4 @@
1
- ご提示頂いたControllerから、URLは「localhost:8080/01」、htmlは「templates/01/home.html」で動くものと仮定させて頂きます。
1
+ ご提示頂いた以下のControllerから、URLは「localhost:8080/01」、htmlは「templates/01/home.html」で動くものと仮定させて頂きます。
2
2
  ```java
3
3
  @RequestMapping("/01")
4
4
  public String home() {
@@ -22,7 +22,7 @@
22
22
  ```
23
23
  これで、ファイルがtemplates/01/home.htmlにあれば表示できます。
24
24
 
25
- なお、templatesには標準でパスが通ているため、以下は無くても動作します。
25
+ なお、templatesには標準でパスが通ているため、以下は無くても動作します。
26
26
  ```properties
27
27
  # spring.thymeleaf.prefix=classpath:/templates/
28
28
  ```