質問編集履歴
1
実行環境について追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,6 +8,176 @@
|
|
8
8
|
|
9
9
|
|
10
10
|
|
11
|
+
### 環境
|
12
|
+
|
13
|
+
#### Javaのバージョン
|
14
|
+
|
15
|
+
```
|
16
|
+
|
17
|
+
$ java -version
|
18
|
+
|
19
|
+
java version "1.8.0_201"
|
20
|
+
|
21
|
+
Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
|
22
|
+
|
23
|
+
Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)
|
24
|
+
|
25
|
+
```
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
#### IDEの種類とバージョン
|
30
|
+
|
31
|
+
```
|
32
|
+
|
33
|
+
IntelliJ IDEA 2019.1 (Community Edition)
|
34
|
+
|
35
|
+
Build #IC-191.6183.87, built on March 27, 2019
|
36
|
+
|
37
|
+
JRE: 1.8.0_202-release-1483-b39 x86_64
|
38
|
+
|
39
|
+
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
|
40
|
+
|
41
|
+
macOS 10.12.6
|
42
|
+
|
43
|
+
```
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
#### ビルドツールの種類
|
48
|
+
|
49
|
+
```
|
50
|
+
|
51
|
+
$ gradle --version
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
------------------------------------------------------------
|
56
|
+
|
57
|
+
Gradle 5.3.1
|
58
|
+
|
59
|
+
------------------------------------------------------------
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
Build time: 2019-03-28 09:09:23 UTC
|
64
|
+
|
65
|
+
Revision: f2fae6ba563cfb772c8bc35d31e43c59a5b620c3
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
Kotlin: 1.3.21
|
70
|
+
|
71
|
+
Groovy: 2.5.4
|
72
|
+
|
73
|
+
Ant: Apache Ant(TM) version 1.9.13 compiled on July 10 2018
|
74
|
+
|
75
|
+
JVM: 1.8.0_201 (Oracle Corporation 25.201-b09)
|
76
|
+
|
77
|
+
OS: Mac OS X 10.12.6 x86_64
|
78
|
+
|
79
|
+
```
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
#### 依存ライブラリ
|
84
|
+
|
85
|
+
```groovy
|
86
|
+
|
87
|
+
plugins {
|
88
|
+
|
89
|
+
id 'org.springframework.boot' version '2.1.4.RELEASE'
|
90
|
+
|
91
|
+
id 'java'
|
92
|
+
|
93
|
+
id 'war'
|
94
|
+
|
95
|
+
}
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
apply plugin: 'io.spring.dependency-management'
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
group = 'com.example.spring'
|
104
|
+
|
105
|
+
version = '0.0.1-SNAPSHOT'
|
106
|
+
|
107
|
+
sourceCompatibility = '1.8'
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
configurations {
|
112
|
+
|
113
|
+
compileOnly {
|
114
|
+
|
115
|
+
extendsFrom annotationProcessor
|
116
|
+
|
117
|
+
}
|
118
|
+
|
119
|
+
}
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
repositories {
|
124
|
+
|
125
|
+
mavenCentral()
|
126
|
+
|
127
|
+
maven {
|
128
|
+
|
129
|
+
url "https://plugins.gradle.org/m2/"
|
130
|
+
|
131
|
+
}
|
132
|
+
|
133
|
+
}
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
dependencies {
|
138
|
+
|
139
|
+
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
|
140
|
+
|
141
|
+
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
|
142
|
+
|
143
|
+
implementation 'org.springframework.boot:spring-boot-starter-validation'
|
144
|
+
|
145
|
+
implementation 'org.springframework.boot:spring-boot-starter-web'
|
146
|
+
|
147
|
+
implementation 'org.springframework.boot:spring-boot-starter-security'
|
148
|
+
|
149
|
+
compileOnly 'org.projectlombok:lombok'
|
150
|
+
|
151
|
+
runtimeOnly 'org.springframework.boot:spring-boot-devtools'
|
152
|
+
|
153
|
+
runtimeOnly 'com.h2database:h2'
|
154
|
+
|
155
|
+
annotationProcessor 'org.projectlombok:lombok'
|
156
|
+
|
157
|
+
providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'
|
158
|
+
|
159
|
+
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
160
|
+
|
161
|
+
implementation 'org.webjars:jquery:1.11.1'
|
162
|
+
|
163
|
+
implementation 'org.webjars:bootstrap:3.3.7-1'
|
164
|
+
|
165
|
+
implementation 'org.springframework.boot:spring-boot-starter-aop'
|
166
|
+
|
167
|
+
implementation 'org.springframework:spring-aop'
|
168
|
+
|
169
|
+
implementation 'org.springframework.security:spring-security-test'
|
170
|
+
|
171
|
+
implementation 'org.aspectj:aspectjweaver'
|
172
|
+
|
173
|
+
// implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity4'
|
174
|
+
|
175
|
+
compile group: 'org.thymeleaf.extras', name: 'thymeleaf-extras-springsecurity4', version: '2.1.2.RELEASE'
|
176
|
+
|
177
|
+
}
|
178
|
+
|
179
|
+
```
|
180
|
+
|
11
181
|
|
12
182
|
|
13
183
|
### コード
|