質問編集履歴
5
記載箇所変更
title
CHANGED
File without changes
|
body
CHANGED
@@ -48,6 +48,23 @@
|
|
48
48
|
spring.thymeleaf.cache=false
|
49
49
|
```
|
50
50
|
|
51
|
+
|
52
|
+
|
53
|
+
### 試したこと
|
54
|
+
|
55
|
+
@RequestMappingのカッコの中に
|
56
|
+
①("/")
|
57
|
+
②({"/"})
|
58
|
+
③value=("/")
|
59
|
+
を入れて試しました。
|
60
|
+
|
61
|
+
ソースの階層は下記のとおりです。
|
62
|
+

|
63
|
+
|
64
|
+
|
65
|
+
第一歩で躓いてしまいました。
|
66
|
+
宜しくお願い致します。
|
67
|
+
|
51
68
|
追記です
|
52
69
|
```pom
|
53
70
|
<?xml version="1.0" encoding="UTF-8"?>
|
@@ -105,19 +122,4 @@
|
|
105
122
|
|
106
123
|
</project>
|
107
124
|
|
108
|
-
```
|
125
|
+
```
|
109
|
-
|
110
|
-
### 試したこと
|
111
|
-
|
112
|
-
@RequestMappingのカッコの中に
|
113
|
-
①("/")
|
114
|
-
②({"/"})
|
115
|
-
③value=("/")
|
116
|
-
を入れて試しました。
|
117
|
-
|
118
|
-
ソースの階層は下記のとおりです。
|
119
|
-

|
120
|
-
|
121
|
-
|
122
|
-
第一歩で躓いてしまいました。
|
123
|
-
宜しくお願い致します。
|
4
pom.xmlを追記しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -48,6 +48,65 @@
|
|
48
48
|
spring.thymeleaf.cache=false
|
49
49
|
```
|
50
50
|
|
51
|
+
追記です
|
52
|
+
```pom
|
53
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
54
|
+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
55
|
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
56
|
+
<modelVersion>4.0.0</modelVersion>
|
57
|
+
|
58
|
+
<groupId>com.tuyano.springboot</groupId>
|
59
|
+
<artifactId>MyBootApp</artifactId>
|
60
|
+
<version>0.0.1-SNAPSHOT</version>
|
61
|
+
<packaging>jar</packaging>
|
62
|
+
|
63
|
+
<name>MyBootApp</name>
|
64
|
+
<description>sample project for Spring Boot</description>
|
65
|
+
|
66
|
+
<parent>
|
67
|
+
<groupId>org.springframework.boot</groupId>
|
68
|
+
<artifactId>spring-boot-starter-parent</artifactId>
|
69
|
+
<version>2.0.5.RELEASE</version>
|
70
|
+
<relativePath/> <!-- lookup parent from repository -->
|
71
|
+
</parent>
|
72
|
+
|
73
|
+
<properties>
|
74
|
+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
75
|
+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
76
|
+
<java.version>1.8</java.version>
|
77
|
+
</properties>
|
78
|
+
|
79
|
+
<dependencies>
|
80
|
+
<dependency>
|
81
|
+
<groupId>org.springframework.boot</groupId>
|
82
|
+
<artifactId>spring-boot-starter-web</artifactId>
|
83
|
+
</dependency>
|
84
|
+
|
85
|
+
<dependency>
|
86
|
+
<groupId>org.springframework.boot</groupId>
|
87
|
+
<artifactId>spring-boot-starter-test</artifactId>
|
88
|
+
<scope>test</scope>
|
89
|
+
</dependency>
|
90
|
+
<dependency>
|
91
|
+
<groupId>org.springframework.boot</groupId>
|
92
|
+
<artifactId>spring-boot-starter-thymeleaf</artifactId>
|
93
|
+
</dependency>
|
94
|
+
</dependencies>
|
95
|
+
|
96
|
+
<build>
|
97
|
+
<plugins>
|
98
|
+
<plugin>
|
99
|
+
<groupId>org.springframework.boot</groupId>
|
100
|
+
<artifactId>spring-boot-maven-plugin</artifactId>
|
101
|
+
</plugin>
|
102
|
+
</plugins>
|
103
|
+
</build>
|
104
|
+
|
105
|
+
|
106
|
+
</project>
|
107
|
+
|
108
|
+
```
|
109
|
+
|
51
110
|
### 試したこと
|
52
111
|
|
53
112
|
@RequestMappingのカッコの中に
|
3
title
CHANGED
File without changes
|
body
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
マッピングの位置は違っていないはずですが、ファイルが見つからず、表示されません。
|
8
8
|
|
9
9
|
### 発生している問題・エラーメッセージ
|
10
|
-
|
10
|
+
http://localhost:8080/をうつと、404が返ってきます。
|
11
11
|
該当ページがない旨のエラーであると認識しています。
|
12
12
|
|
13
13
|
### 該当のソースコード
|
2
title
CHANGED
File without changes
|
body
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
マッピングの位置は違っていないはずですが、ファイルが見つからず、表示されません。
|
8
8
|
|
9
9
|
### 発生している問題・エラーメッセージ
|
10
|
-
|
10
|
+
localhost/8080/をうつと、404が返ってきます。
|
11
11
|
該当ページがない旨のエラーであると認識しています。
|
12
12
|
|
13
13
|
### 該当のソースコード
|
1
誤字脱字
title
CHANGED
File without changes
|
body
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
初歩的なことですが、教えていただきたいです。
|
4
4
|
SpringBootを使って、htmlを表示させたいです。
|
5
|
-
@Controllerと@RequestMappingを使っいます。
|
5
|
+
@Controllerと@RequestMappingを使っています。
|
6
6
|
|
7
7
|
マッピングの位置は違っていないはずですが、ファイルが見つからず、表示されません。
|
8
8
|
|