質問編集履歴

2

gradleのソースを追記しました

2017/05/27 06:37

投稿

heavyuseman
heavyuseman

スコア42

test CHANGED
File without changes
test CHANGED
@@ -367,3 +367,105 @@
367
367
  </html>
368
368
 
369
369
  ```
370
+
371
+ ```gradle
372
+
373
+ buildscript {
374
+
375
+ ext {
376
+
377
+ springBootVersion = '1.5.1.RELEASE'
378
+
379
+ }
380
+
381
+ repositories {
382
+
383
+ mavenCentral()
384
+
385
+ }
386
+
387
+ dependencies {
388
+
389
+ classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
390
+
391
+ }
392
+
393
+ }
394
+
395
+
396
+
397
+ apply plugin: 'java'
398
+
399
+ apply plugin: 'eclipse-wtp'
400
+
401
+ apply plugin: 'org.springframework.boot'
402
+
403
+ apply plugin: 'war'
404
+
405
+
406
+
407
+ war {
408
+
409
+ baseName = 'MybootApp'
410
+
411
+ version = '0.0.1-SNAPSHOT'
412
+
413
+ }
414
+
415
+
416
+
417
+ sourceCompatibility = 1.8
418
+
419
+
420
+
421
+ repositories {
422
+
423
+ mavenCentral()
424
+
425
+ }
426
+
427
+
428
+
429
+ configurations {
430
+
431
+ providedRuntime
432
+
433
+ }
434
+
435
+
436
+
437
+ dependencies {
438
+
439
+ //SpringSecurityを使うため、追加
440
+
441
+ compile('org.springframework.boot:spring-boot-starter-security')
442
+
443
+ compile('org.thymeleaf.extras:thymeleaf-extras-springsecurity4')
444
+
445
+ compile('org.springframework.boot:spring-boot-starter-data-jpa')
446
+
447
+ compile('org.springframework.boot:spring-boot-starter-thymeleaf')
448
+
449
+ compile('org.springframework.boot:spring-boot-starter-web')
450
+
451
+ runtime('mysql:mysql-connector-java')
452
+
453
+ providedRuntime('org.springframework.boot:spring-boot-starter-tomcat')
454
+
455
+ testCompile('org.springframework.boot:spring-boot-starter-test')
456
+
457
+ // MySQL
458
+
459
+ //compile ("mysql:mysql-connector-java:$mySQLVersion")
460
+
461
+ compile ('com.fasterxml.jackson.core:jackson-databind:2.3.4')
462
+
463
+ compile("org.springframework.boot:spring-boot-starter-thymeleaf")
464
+
465
+
466
+
467
+
468
+
469
+ }
470
+
471
+ ```

1

2017/05/27 06:37

投稿

heavyuseman
heavyuseman

スコア42

test CHANGED
File without changes
test CHANGED
@@ -18,7 +18,7 @@
18
18
 
19
19
  at org.springframework.web.servlet.mvc.method.annotation.HttpEntityMethodProcessor.handleReturnValue(HttpEntityMethodProcessor.java:203) ~[spring-webmvc-4.3.6.RELEASE.jar:4.3.6.RELEASE]
20
20
 
21
-
21
+ jacksonの設定はgradleでしております
22
22
 
23
23
  原因が不明ですのでご教授よろしくお願いいたします。
24
24