質問編集履歴

2

実現したい画面の画像追加、文言修正

2019/07/24 11:44

投稿

nyan_engineer
nyan_engineer

スコア30

test CHANGED
File without changes
test CHANGED
@@ -4,9 +4,11 @@
4
4
 
5
5
  現在、SpringBoot学習の一環としてで簡単なWebアプリを作成しています。
6
6
 
7
- テンプレートとコンテンツ部分を分けて画面を表示させたいですが、
7
+ テンプレートとコンテンツ部分を下記のようにを表示させたいです
8
-
8
+
9
- 以下像のようになり表示できません。
9
+ ![参考面](6de28d4c94b3b8cca7e2528f841c3ea4.png)
10
+
11
+
10
12
 
11
13
 
12
14
 
@@ -14,6 +16,10 @@
14
16
 
15
17
 
16
18
 
19
+ 以下作成した画面ですが、コンテンツが上手く反映されていないようです。
20
+
21
+
22
+
17
23
  エラー画面
18
24
 
19
25
  ![エラー画面](a13b35ff6b8b28e2305e6a647c1becb8.png)

1

pom.xmlを追記しました

2019/07/24 11:44

投稿

nyan_engineer
nyan_engineer

スコア30

test CHANGED
File without changes
test CHANGED
@@ -260,4 +260,196 @@
260
260
 
261
261
 
262
262
 
263
+ ```pom
264
+
265
+ <?xml version="1.0" encoding="UTF-8"?>
266
+
267
+ <project xmlns="http://maven.apache.org/POM/4.0.0"
268
+
269
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
270
+
271
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
272
+
273
+ <modelVersion>4.0.0</modelVersion>
274
+
275
+ <parent>
276
+
277
+ <groupId>org.springframework.boot</groupId>
278
+
279
+ <artifactId>spring-boot-starter-parent</artifactId>
280
+
281
+ <version>2.1.6.RELEASE</version>
282
+
283
+ <relativePath /> <!-- lookup parent from repository -->
284
+
285
+ </parent>
286
+
287
+ <groupId>com.example</groupId>
288
+
289
+ <artifactId>SpringSample</artifactId>
290
+
291
+ <version>0.0.1-SNAPSHOT</version>
292
+
293
+ <name>SpringSample</name>
294
+
295
+ <description>Demo project for Spring Boot</description>
296
+
297
+
298
+
299
+ <properties>
300
+
301
+ <java.version>12</java.version>
302
+
303
+ </properties>
304
+
305
+
306
+
307
+ <dependencies>
308
+
309
+ <dependency>
310
+
311
+ <groupId>org.springframework.boot</groupId>
312
+
313
+ <artifactId>spring-boot-starter-jdbc</artifactId>
314
+
315
+ </dependency>
316
+
317
+ <dependency>
318
+
319
+ <groupId>org.springframework.boot</groupId>
320
+
321
+ <artifactId>spring-boot-starter-thymeleaf</artifactId>
322
+
323
+ </dependency>
324
+
325
+ <dependency>
326
+
327
+ <groupId>org.springframework.boot</groupId>
328
+
329
+ <artifactId>spring-boot-starter-web</artifactId>
330
+
331
+ </dependency>
332
+
333
+
334
+
335
+ <dependency>
336
+
337
+ <groupId>org.projectlombok</groupId>
338
+
339
+ <artifactId>lombok</artifactId>
340
+
341
+ <optional>true</optional>
342
+
343
+ </dependency>
344
+
345
+ <dependency>
346
+
347
+ <groupId>org.springframework.boot</groupId>
348
+
349
+ <artifactId>spring-boot-devtools</artifactId>
350
+
351
+ <scope>runtime</scope>
352
+
353
+ <optional>true</optional>
354
+
355
+ </dependency>
356
+
357
+ <dependency>
358
+
359
+ <groupId>com.h2database</groupId>
360
+
361
+ <artifactId>h2</artifactId>
362
+
363
+ <scope>runtime</scope>
364
+
365
+ </dependency>
366
+
367
+ <dependency>
368
+
369
+ <groupId>org.springframework.boot</groupId>
370
+
371
+ <artifactId>spring-boot-starter-test</artifactId>
372
+
373
+ <scope>test</scope>
374
+
375
+ </dependency>
376
+
377
+
378
+
379
+ <!-- webjars:JQuery -->
380
+
381
+ <dependency>
382
+
383
+ <groupId>org.webjars</groupId>
384
+
385
+ <artifactId>jquery</artifactId>
386
+
387
+ <version>3.4.1</version>
388
+
389
+ </dependency>
390
+
391
+ <!-- webjars:Bootstrap -->
392
+
393
+ <dependency>
394
+
395
+ <groupId>org.webjars</groupId>
396
+
397
+ <artifactId>bootstrap</artifactId>
398
+
399
+ <version>4.0.0</version>
400
+
401
+ </dependency>
402
+
403
+
404
+
405
+ <!-- Spring AOP -->
406
+
407
+ <dependency>
408
+
409
+ <groupId>org.springframework</groupId>
410
+
411
+ <artifactId>spring-aop</artifactId>
412
+
413
+ </dependency>
414
+
415
+ <!-- AspectJ -->
416
+
417
+ <dependency>
418
+
419
+ <groupId>org.aspectj</groupId>
420
+
421
+ <artifactId>aspectjweaver</artifactId>
422
+
423
+ </dependency>
424
+
425
+ </dependencies>
426
+
427
+
428
+
429
+ <build>
430
+
431
+ <plugins>
432
+
433
+ <plugin>
434
+
435
+ <groupId>org.springframework.boot</groupId>
436
+
437
+ <artifactId>spring-boot-maven-plugin</artifactId>
438
+
439
+ </plugin>
440
+
441
+ </plugins>
442
+
443
+ </build>
444
+
445
+
446
+
447
+ </project>
448
+
449
+
450
+
451
+ ```
452
+
453
+
454
+
263
455
  解決方法分かる方いらっしゃいましたら、ご教授いただけると幸いです。