teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

追記2

2020/04/25 09:16

投稿

aae_11
aae_11

スコア178

title CHANGED
File without changes
body CHANGED
@@ -155,4 +155,81 @@
155
155
  「templates」フォルダ内の「index.tpl」を削除しましたら、以下の表示に変わりました。
156
156
  ![イメージ説明](358ab9b2ea5a72120b75073a1ae7930a.png)
157
157
 
158
- HeloController内の「index」メソッド内の「System.out.println("ok");」ここの部分Eclipseのコンソールに出力されていることから、indexメソッド内にリクエストは渡ってきていることは確認できています
158
+ HeloController内の「index」メソッド内の「System.out.println("ok");」ここの部分Eclipseのコンソールに出力されていることから、indexメソッド内にリクエストは渡ってきていることは確認できています
159
+
160
+ **追記2**
161
+ 下記はpom.xmlです。
162
+ ```
163
+ <?xml version="1.0" encoding="UTF-8"?>
164
+ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
165
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
166
+ <modelVersion>4.0.0</modelVersion>
167
+ <parent>
168
+ <groupId>org.springframework.boot</groupId>
169
+ <artifactId>spring-boot-starter-parent</artifactId>
170
+ <version>2.2.6.RELEASE</version>
171
+ <relativePath/> <!-- lookup parent from repository -->
172
+ </parent>
173
+ <groupId>com.shinya.springboot</groupId>
174
+ <artifactId>MyBootApp</artifactId>
175
+ <version>0.0.1-SNAPSHOT</version>
176
+ <name>MyBootApp</name>
177
+ <description>Demo project for Spring Boot</description>
178
+
179
+ <properties>
180
+ <java.version>8</java.version>
181
+ </properties>
182
+
183
+ <dependencies>
184
+ <dependency>
185
+ <groupId>org.springframework.boot</groupId>
186
+ <artifactId>spring-boot-devtools</artifactId>
187
+ </dependency>
188
+ <dependency>
189
+ <groupId>org.springframework.boot</groupId>
190
+ <artifactId>spring-boot-starter</artifactId>
191
+ </dependency>
192
+ <dependency>
193
+ <groupId>org.springframework.boot</groupId>
194
+ <artifactId>spring-boot-starter-data-jpa</artifactId>
195
+ </dependency>
196
+ <dependency>
197
+ <groupId>org.hsqldb</groupId>
198
+ <artifactId>hsqldb</artifactId>
199
+ <scope>runtime</scope>
200
+ </dependency>
201
+ <dependency>
202
+ <groupId>org.springframework.boot</groupId>
203
+ <artifactId>spring-boot-starter-web</artifactId>
204
+ </dependency>
205
+ <dependency>
206
+ <groupId>org.springframework.boot</groupId>
207
+ <artifactId>spring-boot-starter-groovy-templates</artifactId>
208
+ </dependency>
209
+ <dependency>
210
+ <groupId>org.springframework.boot</groupId>
211
+ <artifactId>spring-boot-starter-test</artifactId>
212
+ <scope>test</scope>
213
+ <exclusions>
214
+ <exclusion>
215
+ <groupId>org.junit.vintage</groupId>
216
+ <artifactId>junit-vintage-engine</artifactId>
217
+ </exclusion>
218
+ </exclusions>
219
+ </dependency>
220
+
221
+
222
+ </dependencies>
223
+
224
+ <build>
225
+ <plugins>
226
+ <plugin>
227
+ <groupId>org.springframework.boot</groupId>
228
+ <artifactId>spring-boot-maven-plugin</artifactId>
229
+ </plugin>
230
+ </plugins>
231
+ </build>
232
+
233
+ </project>
234
+
235
+ ```

1

追記

2020/04/25 09:16

投稿

aae_11
aae_11

スコア178

title CHANGED
File without changes
body CHANGED
@@ -149,4 +149,10 @@
149
149
 
150
150
  実行環境:
151
151
  Eclipseのバージョン: Version: 2019-12 (4.14.0)
152
- OS: MacOSMojave
152
+ OS: MacOSMojave
153
+
154
+ **追記**
155
+ 「templates」フォルダ内の「index.tpl」を削除しましたら、以下の表示に変わりました。
156
+ ![イメージ説明](358ab9b2ea5a72120b75073a1ae7930a.png)
157
+
158
+ HeloController内の「index」メソッド内の「System.out.println("ok");」ここの部分Eclipseのコンソールに出力されていることから、indexメソッド内にリクエストは渡ってきていることは確認できています