質問編集履歴
4
POM.XML修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -412,7 +412,7 @@
|
|
412
412
|
|
413
413
|
<build>
|
414
414
|
|
415
|
-
<finalName>
|
415
|
+
<finalName>XXXXX</finalName>
|
416
416
|
|
417
417
|
<plugins>
|
418
418
|
|
3
pom.xmlの追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -40,14 +40,446 @@
|
|
40
40
|
|
41
41
|
|
42
42
|
|
43
|
+
POM.XMLは以下のようになっています。
|
44
|
+
|
45
|
+
```pom.xml
|
46
|
+
|
47
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
48
|
+
|
49
|
+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
50
|
+
|
51
|
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
52
|
+
|
43
|
-
|
53
|
+
<modelVersion>4.0.0</modelVersion>
|
54
|
+
|
55
|
+
|
56
|
+
|
44
|
-
|
57
|
+
<groupId>XXXX</groupId>
|
58
|
+
|
59
|
+
<artifactId>XXXX</artifactId>
|
60
|
+
|
61
|
+
<version>1.0.11-SNAPSHOT</version>
|
62
|
+
|
63
|
+
<packaging>war</packaging>
|
64
|
+
|
65
|
+
|
66
|
+
|
45
|
-
|
67
|
+
<name>XXXX</name>
|
46
|
-
|
68
|
+
|
69
|
+
|
70
|
+
|
47
|
-
<
|
71
|
+
<parent>
|
48
72
|
|
49
73
|
<groupId>org.springframework.boot</groupId>
|
50
74
|
|
75
|
+
<artifactId>spring-boot-starter-parent</artifactId>
|
76
|
+
|
77
|
+
<version>2.5.0</version>
|
78
|
+
|
79
|
+
</parent>
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
<dependencies>
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
<dependency>
|
88
|
+
|
89
|
+
<groupId>com.example</groupId>
|
90
|
+
|
91
|
+
<artifactId>XXXX-XXXX</artifactId>
|
92
|
+
|
93
|
+
<version>1.0.11-SNAPSHOT</version>
|
94
|
+
|
95
|
+
</dependency>
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
<dependency>
|
100
|
+
|
101
|
+
<groupId>org.springframework.boot</groupId>
|
102
|
+
|
103
|
+
<artifactId>spring-boot-starter-web</artifactId>
|
104
|
+
|
105
|
+
</dependency>
|
106
|
+
|
107
|
+
<dependency>
|
108
|
+
|
109
|
+
<groupId>org.springframework.boot</groupId>
|
110
|
+
|
51
|
-
<artifactId>spring-boot-starter-thymeleaf</artifactId>
|
111
|
+
<artifactId>spring-boot-starter-thymeleaf</artifactId>
|
52
|
-
|
112
|
+
|
53
|
-
</dependency>
|
113
|
+
</dependency>
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
<dependency>
|
118
|
+
|
119
|
+
<groupId>org.springframework.boot</groupId>
|
120
|
+
|
121
|
+
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
122
|
+
|
123
|
+
</dependency>
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
<dependency>
|
128
|
+
|
129
|
+
<groupId>org.webjars</groupId>
|
130
|
+
|
131
|
+
<artifactId>bootstrap</artifactId>
|
132
|
+
|
133
|
+
<version>3.2.0</version>
|
134
|
+
|
135
|
+
<scope>provided</scope>
|
136
|
+
|
137
|
+
</dependency>
|
138
|
+
|
139
|
+
<dependency>
|
140
|
+
|
141
|
+
<groupId>org.lazyluke</groupId>
|
142
|
+
|
143
|
+
<artifactId>log4jdbc-remix</artifactId>
|
144
|
+
|
145
|
+
<version>0.2.7</version>
|
146
|
+
|
147
|
+
<scope>provided</scope>
|
148
|
+
|
149
|
+
</dependency>
|
150
|
+
|
151
|
+
<dependency>
|
152
|
+
|
153
|
+
<groupId>org.projectlombok</groupId>
|
154
|
+
|
155
|
+
<artifactId>lombok</artifactId>
|
156
|
+
|
157
|
+
<version>1.18.20</version>
|
158
|
+
|
159
|
+
<scope>provided</scope>
|
160
|
+
|
161
|
+
</dependency>
|
162
|
+
|
163
|
+
<dependency>
|
164
|
+
|
165
|
+
<groupId>org.springframework.boot</groupId>
|
166
|
+
|
167
|
+
<artifactId>spring-boot-starter-test</artifactId>
|
168
|
+
|
169
|
+
<scope>test</scope>
|
170
|
+
|
171
|
+
</dependency>
|
172
|
+
|
173
|
+
<dependency>
|
174
|
+
|
175
|
+
<groupId>mysql</groupId>
|
176
|
+
|
177
|
+
<artifactId>mysql-connector-java</artifactId>
|
178
|
+
|
179
|
+
<scope>runtime</scope>
|
180
|
+
|
181
|
+
</dependency>
|
182
|
+
|
183
|
+
<dependency>
|
184
|
+
|
185
|
+
<groupId>org.apache.velocity</groupId>
|
186
|
+
|
187
|
+
<artifactId>velocity</artifactId>
|
188
|
+
|
189
|
+
<version>1.7</version>
|
190
|
+
|
191
|
+
<scope>compile</scope>
|
192
|
+
|
193
|
+
</dependency>
|
194
|
+
|
195
|
+
<dependency>
|
196
|
+
|
197
|
+
<groupId>org.springframework</groupId>
|
198
|
+
|
199
|
+
<artifactId>spring-context-support</artifactId>
|
200
|
+
|
201
|
+
<scope>compile</scope>
|
202
|
+
|
203
|
+
</dependency>
|
204
|
+
|
205
|
+
<dependency>
|
206
|
+
|
207
|
+
<groupId>org.springframework.boot</groupId>
|
208
|
+
|
209
|
+
<artifactId>spring-boot-starter-mail</artifactId>
|
210
|
+
|
211
|
+
<version>1.2.1.RELEASE</version>
|
212
|
+
|
213
|
+
<scope>provided</scope>
|
214
|
+
|
215
|
+
</dependency>
|
216
|
+
|
217
|
+
<dependency>
|
218
|
+
|
219
|
+
<groupId>javax.mail</groupId>
|
220
|
+
|
221
|
+
<artifactId>mail</artifactId>
|
222
|
+
|
223
|
+
<version>1.4</version>
|
224
|
+
|
225
|
+
<scope>compile</scope>
|
226
|
+
|
227
|
+
</dependency>
|
228
|
+
|
229
|
+
<dependency>
|
230
|
+
|
231
|
+
<groupId>org.springframework.boot</groupId>
|
232
|
+
|
233
|
+
<artifactId>spring-boot-starter-security</artifactId>
|
234
|
+
|
235
|
+
<scope>provided</scope>
|
236
|
+
|
237
|
+
</dependency>
|
238
|
+
|
239
|
+
<dependency>
|
240
|
+
|
241
|
+
<groupId>org.springframework.security</groupId>
|
242
|
+
|
243
|
+
<artifactId>spring-security-core</artifactId>
|
244
|
+
|
245
|
+
<version>3.2.5.RELEASE</version>
|
246
|
+
|
247
|
+
</dependency>
|
248
|
+
|
249
|
+
<dependency>
|
250
|
+
|
251
|
+
<groupId>org.springframework.security</groupId>
|
252
|
+
|
253
|
+
<artifactId>spring-security-web</artifactId>
|
254
|
+
|
255
|
+
<version>3.2.5.RELEASE</version>
|
256
|
+
|
257
|
+
</dependency>
|
258
|
+
|
259
|
+
<dependency>
|
260
|
+
|
261
|
+
<groupId>org.springframework.security</groupId>
|
262
|
+
|
263
|
+
<artifactId>spring-security-config</artifactId>
|
264
|
+
|
265
|
+
<version>3.2.5.RELEASE</version>
|
266
|
+
|
267
|
+
</dependency>
|
268
|
+
|
269
|
+
<dependency>
|
270
|
+
|
271
|
+
<groupId>org.apache.poi</groupId>
|
272
|
+
|
273
|
+
<artifactId>poi</artifactId>
|
274
|
+
|
275
|
+
<version>3.11</version>
|
276
|
+
|
277
|
+
<scope>provided</scope>
|
278
|
+
|
279
|
+
</dependency>
|
280
|
+
|
281
|
+
<dependency>
|
282
|
+
|
283
|
+
<groupId>org.apache.poi</groupId>
|
284
|
+
|
285
|
+
<artifactId>poi-ooxml</artifactId>
|
286
|
+
|
287
|
+
<version>3.11</version>
|
288
|
+
|
289
|
+
<scope>provided</scope>
|
290
|
+
|
291
|
+
</dependency>
|
292
|
+
|
293
|
+
<dependency>
|
294
|
+
|
295
|
+
<groupId>org.apache.poi</groupId>
|
296
|
+
|
297
|
+
<artifactId>poi-ooxml-schemas</artifactId>
|
298
|
+
|
299
|
+
<version>3.11</version>
|
300
|
+
|
301
|
+
<scope>provided</scope>
|
302
|
+
|
303
|
+
</dependency>
|
304
|
+
|
305
|
+
<dependency>
|
306
|
+
|
307
|
+
<groupId>org.apache.poi</groupId>
|
308
|
+
|
309
|
+
<artifactId>poi-scratchpad</artifactId>
|
310
|
+
|
311
|
+
<version>3.11</version>
|
312
|
+
|
313
|
+
<scope>provided</scope>
|
314
|
+
|
315
|
+
</dependency>
|
316
|
+
|
317
|
+
<dependency>
|
318
|
+
|
319
|
+
<groupId>org.bbreak.excella</groupId>
|
320
|
+
|
321
|
+
<artifactId>excella-core</artifactId>
|
322
|
+
|
323
|
+
<version>1.10</version>
|
324
|
+
|
325
|
+
</dependency>
|
326
|
+
|
327
|
+
<dependency>
|
328
|
+
|
329
|
+
<groupId>org.bbreak.excella</groupId>
|
330
|
+
|
331
|
+
<artifactId>excella-reports</artifactId>
|
332
|
+
|
333
|
+
<version>1.8</version>
|
334
|
+
|
335
|
+
</dependency>
|
336
|
+
|
337
|
+
<dependency>
|
338
|
+
|
339
|
+
<groupId>org.springframework.boot</groupId>
|
340
|
+
|
341
|
+
<artifactId>spring-boot-starter-tomcat</artifactId>
|
342
|
+
|
343
|
+
<scope>provided</scope>
|
344
|
+
|
345
|
+
</dependency>
|
346
|
+
|
347
|
+
<dependency>
|
348
|
+
|
349
|
+
<groupId>org.apache.httpcomponents</groupId>
|
350
|
+
|
351
|
+
<artifactId>httpclient</artifactId>
|
352
|
+
|
353
|
+
</dependency>
|
354
|
+
|
355
|
+
<dependency>
|
356
|
+
|
357
|
+
<groupId>org.apache.commons</groupId>
|
358
|
+
|
359
|
+
<artifactId>commons-lang3</artifactId>
|
360
|
+
|
361
|
+
<version>3.4</version>
|
362
|
+
|
363
|
+
</dependency>
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
<!--API, java.xml.bind module -->
|
368
|
+
|
369
|
+
<dependency>
|
370
|
+
|
371
|
+
<groupId>jakarta.xml.bind</groupId>
|
372
|
+
|
373
|
+
<artifactId>jakarta.xml.bind-api</artifactId>
|
374
|
+
|
375
|
+
<version>2.3.2</version>
|
376
|
+
|
377
|
+
</dependency>
|
378
|
+
|
379
|
+
<!--Runtime, com.sun.xml.bind module -->
|
380
|
+
|
381
|
+
<dependency>
|
382
|
+
|
383
|
+
<groupId>org.glassfish.jaxb</groupId>
|
384
|
+
|
385
|
+
<artifactId>jaxb-runtime</artifactId>
|
386
|
+
|
387
|
+
<version>2.3.2</version>
|
388
|
+
|
389
|
+
</dependency>
|
390
|
+
|
391
|
+
<dependency>
|
392
|
+
|
393
|
+
<groupId>org.springframework.boot</groupId>
|
394
|
+
|
395
|
+
<artifactId>spring-boot-starter-validation</artifactId>
|
396
|
+
|
397
|
+
</dependency>
|
398
|
+
|
399
|
+
</dependencies>
|
400
|
+
|
401
|
+
|
402
|
+
|
403
|
+
<properties>
|
404
|
+
|
405
|
+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
406
|
+
|
407
|
+
<java.version>11</java.version>
|
408
|
+
|
409
|
+
</properties>
|
410
|
+
|
411
|
+
|
412
|
+
|
413
|
+
<build>
|
414
|
+
|
415
|
+
<finalName>admin</finalName>
|
416
|
+
|
417
|
+
<plugins>
|
418
|
+
|
419
|
+
<plugin>
|
420
|
+
|
421
|
+
<groupId>org.springframework.boot</groupId>
|
422
|
+
|
423
|
+
<artifactId>spring-boot-maven-plugin</artifactId>
|
424
|
+
|
425
|
+
<dependencies>
|
426
|
+
|
427
|
+
<dependency>
|
428
|
+
|
429
|
+
<groupId>org.springframework</groupId>
|
430
|
+
|
431
|
+
<artifactId>springloaded</artifactId>
|
432
|
+
|
433
|
+
<version>1.2.8.RELEASE</version>
|
434
|
+
|
435
|
+
</dependency>
|
436
|
+
|
437
|
+
</dependencies>
|
438
|
+
|
439
|
+
<configuration>
|
440
|
+
|
441
|
+
<mainClass>XXXX</mainClass>
|
442
|
+
|
443
|
+
</configuration>
|
444
|
+
|
445
|
+
</plugin>
|
446
|
+
|
447
|
+
|
448
|
+
|
449
|
+
<plugin>
|
450
|
+
|
451
|
+
<artifactId>maven-compiler-plugin</artifactId>
|
452
|
+
|
453
|
+
<version>3.7.0</version>
|
454
|
+
|
455
|
+
<configuration>
|
456
|
+
|
457
|
+
<source>10</source>
|
458
|
+
|
459
|
+
<target>10</target>
|
460
|
+
|
461
|
+
<release>10</release>
|
462
|
+
|
463
|
+
<forceJavacCompilerUse>true</forceJavacCompilerUse>
|
464
|
+
|
465
|
+
<compilerArgs>
|
466
|
+
|
467
|
+
<arg>-Werror</arg>
|
468
|
+
|
469
|
+
<arg>-verbose</arg>
|
470
|
+
|
471
|
+
</compilerArgs>
|
472
|
+
|
473
|
+
</configuration>
|
474
|
+
|
475
|
+
</plugin>
|
476
|
+
|
477
|
+
</plugins>
|
478
|
+
|
479
|
+
</build>
|
480
|
+
|
481
|
+
</project>
|
482
|
+
|
483
|
+
|
484
|
+
|
485
|
+
```
|
2
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -27,3 +27,27 @@
|
|
27
27
|
・
|
28
28
|
|
29
29
|
・
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
追記:
|
34
|
+
|
35
|
+
すみません。javaを1.7→11、SpringBootを1.2→2.5にupdateして、
|
36
|
+
|
37
|
+
mvn spring-boot:runをしましたが、上記のエラーとなってしまっています。
|
38
|
+
|
39
|
+
※ その間に色々なエラーが出ましたが1つずつ解消していきました。
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
コードは全て載せられないのですが、thymeleafに関する設定だとpom.xmlに以下を入れています。
|
44
|
+
|
45
|
+
他に必要な定義などありますでしょうか‥?
|
46
|
+
|
47
|
+
<dependency>
|
48
|
+
|
49
|
+
<groupId>org.springframework.boot</groupId>
|
50
|
+
|
51
|
+
<artifactId>spring-boot-starter-thymeleaf</artifactId>
|
52
|
+
|
53
|
+
</dependency>
|
1
ログの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,68 +6,24 @@
|
|
6
6
|
|
7
7
|
|
8
8
|
|
9
|
-
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [jp.co.XXX.XXX.XXX]; nested exception is java.io.FileNotFoundException: class path resource [org/thymeleaf/dialect/IExpressionEnhancingDialect.class] cannot be opened because it does not exist
|
10
9
|
|
11
|
-
at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:189)
|
12
10
|
|
13
|
-
|
11
|
+
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [jp.co.XXX.XXX.XXX];
|
14
12
|
|
15
|
-
|
13
|
+
nested exception is java.io.FileNotFoundException: class path resource [org/thymeleaf/dialect/IExpressionEnhancingDialect.class] cannot be opened because it does not exist
|
16
14
|
|
17
|
-
|
15
|
+
・
|
18
16
|
|
19
|
-
|
17
|
+
・
|
20
18
|
|
21
|
-
|
19
|
+
・
|
22
20
|
|
23
|
-
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:564)
|
24
|
-
|
25
|
-
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145)
|
26
|
-
|
27
|
-
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:758)
|
28
|
-
|
29
|
-
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:438)
|
30
|
-
|
31
|
-
at org.springframework.boot.SpringApplication.run(SpringApplication.java:337)
|
32
|
-
|
33
|
-
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1336)
|
34
|
-
|
35
|
-
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1325)
|
36
|
-
|
37
|
-
|
21
|
+
・
|
38
22
|
|
39
23
|
Caused by: java.io.FileNotFoundException: class path resource [org/thymeleaf/dialect/IExpressionEnhancingDialect.class] cannot be opened because it does not exist
|
40
24
|
|
41
|
-
|
25
|
+
・
|
42
26
|
|
43
|
-
|
27
|
+
・
|
44
28
|
|
45
|
-
at org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:49)
|
46
|
-
|
47
|
-
at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:103)
|
48
|
-
|
49
|
-
at org.springframework.boot.type.classreading.ConcurrentReferenceCachingMetadataReaderFactory.createMetadataReader(ConcurrentReferenceCachingMetadataReaderFactory.java:86)
|
50
|
-
|
51
|
-
at org.springframework.boot.type.classreading.ConcurrentReferenceCachingMetadataReaderFactory.getMetadataReader(ConcurrentReferenceCachingMetadataReaderFactory.java:73)
|
52
|
-
|
53
|
-
at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:81)
|
54
|
-
|
55
|
-
at org.springframework.context.annotation.ConfigurationClassParser.asSourceClass(ConfigurationClassParser.java:696)
|
56
|
-
|
57
|
-
at org.springframework.context.annotation.ConfigurationClassParser$SourceClass.getInterfaces(ConfigurationClassParser.java:1024)
|
58
|
-
|
59
|
-
at org.springframework.context.annotation.ConfigurationClassParser.processInterfaces(ConfigurationClassParser.java:386)
|
60
|
-
|
61
|
-
at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:332)
|
62
|
-
|
63
|
-
at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:250)
|
64
|
-
|
65
|
-
|
29
|
+
・
|
66
|
-
|
67
|
-
at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:304)
|
68
|
-
|
69
|
-
at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:250)
|
70
|
-
|
71
|
-
at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:207)
|
72
|
-
|
73
|
-
at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:175)
|