質問編集履歴

2

追記2

2020/04/25 09:16

投稿

aae_11
aae_11

スコア178

test CHANGED
File without changes
test CHANGED
@@ -313,3 +313,157 @@
313
313
 
314
314
 
315
315
  HeloController内の「index」メソッド内の「System.out.println("ok");」ここの部分Eclipseのコンソールに出力されていることから、indexメソッド内にリクエストは渡ってきていることは確認できています
316
+
317
+
318
+
319
+ **追記2**
320
+
321
+ 下記はpom.xmlです。
322
+
323
+ ```
324
+
325
+ <?xml version="1.0" encoding="UTF-8"?>
326
+
327
+ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
328
+
329
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
330
+
331
+ <modelVersion>4.0.0</modelVersion>
332
+
333
+ <parent>
334
+
335
+ <groupId>org.springframework.boot</groupId>
336
+
337
+ <artifactId>spring-boot-starter-parent</artifactId>
338
+
339
+ <version>2.2.6.RELEASE</version>
340
+
341
+ <relativePath/> <!-- lookup parent from repository -->
342
+
343
+ </parent>
344
+
345
+ <groupId>com.shinya.springboot</groupId>
346
+
347
+ <artifactId>MyBootApp</artifactId>
348
+
349
+ <version>0.0.1-SNAPSHOT</version>
350
+
351
+ <name>MyBootApp</name>
352
+
353
+ <description>Demo project for Spring Boot</description>
354
+
355
+
356
+
357
+ <properties>
358
+
359
+ <java.version>8</java.version>
360
+
361
+ </properties>
362
+
363
+
364
+
365
+ <dependencies>
366
+
367
+ <dependency>
368
+
369
+ <groupId>org.springframework.boot</groupId>
370
+
371
+ <artifactId>spring-boot-devtools</artifactId>
372
+
373
+ </dependency>
374
+
375
+ <dependency>
376
+
377
+ <groupId>org.springframework.boot</groupId>
378
+
379
+ <artifactId>spring-boot-starter</artifactId>
380
+
381
+ </dependency>
382
+
383
+ <dependency>
384
+
385
+ <groupId>org.springframework.boot</groupId>
386
+
387
+ <artifactId>spring-boot-starter-data-jpa</artifactId>
388
+
389
+ </dependency>
390
+
391
+ <dependency>
392
+
393
+ <groupId>org.hsqldb</groupId>
394
+
395
+ <artifactId>hsqldb</artifactId>
396
+
397
+ <scope>runtime</scope>
398
+
399
+ </dependency>
400
+
401
+ <dependency>
402
+
403
+ <groupId>org.springframework.boot</groupId>
404
+
405
+ <artifactId>spring-boot-starter-web</artifactId>
406
+
407
+ </dependency>
408
+
409
+ <dependency>
410
+
411
+ <groupId>org.springframework.boot</groupId>
412
+
413
+ <artifactId>spring-boot-starter-groovy-templates</artifactId>
414
+
415
+ </dependency>
416
+
417
+ <dependency>
418
+
419
+ <groupId>org.springframework.boot</groupId>
420
+
421
+ <artifactId>spring-boot-starter-test</artifactId>
422
+
423
+ <scope>test</scope>
424
+
425
+ <exclusions>
426
+
427
+ <exclusion>
428
+
429
+ <groupId>org.junit.vintage</groupId>
430
+
431
+ <artifactId>junit-vintage-engine</artifactId>
432
+
433
+ </exclusion>
434
+
435
+ </exclusions>
436
+
437
+ </dependency>
438
+
439
+
440
+
441
+
442
+
443
+ </dependencies>
444
+
445
+
446
+
447
+ <build>
448
+
449
+ <plugins>
450
+
451
+ <plugin>
452
+
453
+ <groupId>org.springframework.boot</groupId>
454
+
455
+ <artifactId>spring-boot-maven-plugin</artifactId>
456
+
457
+ </plugin>
458
+
459
+ </plugins>
460
+
461
+ </build>
462
+
463
+
464
+
465
+ </project>
466
+
467
+
468
+
469
+ ```

1

追記

2020/04/25 09:16

投稿

aae_11
aae_11

スコア178

test CHANGED
File without changes
test CHANGED
@@ -301,3 +301,15 @@
301
301
  Eclipseのバージョン: Version: 2019-12 (4.14.0)
302
302
 
303
303
  OS: MacOSMojave
304
+
305
+
306
+
307
+ **追記**
308
+
309
+ 「templates」フォルダ内の「index.tpl」を削除しましたら、以下の表示に変わりました。
310
+
311
+ ![イメージ説明](358ab9b2ea5a72120b75073a1ae7930a.png)
312
+
313
+
314
+
315
+ HeloController内の「index」メソッド内の「System.out.println("ok");」ここの部分Eclipseのコンソールに出力されていることから、indexメソッド内にリクエストは渡ってきていることは確認できています