質問編集履歴
2
pom.xml、 application.properties の内容を追記しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -26,5 +26,80 @@
|
|
26
26
|
... 55 common frames omitted
|
27
27
|
```
|
28
28
|
|
29
|
+
pom.xml
|
30
|
+
```XML
|
31
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
32
|
+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
33
|
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
34
|
+
<modelVersion>4.0.0</modelVersion>
|
35
|
+
|
36
|
+
<groupId>com.example</groupId>
|
37
|
+
<artifactId>demo</artifactId>
|
38
|
+
<version>0.0.1-SNAPSHOT</version>
|
39
|
+
<packaging>jar</packaging>
|
40
|
+
|
41
|
+
<name>demo</name>
|
42
|
+
<description>Demo project for Spring Boot</description>
|
43
|
+
|
44
|
+
<parent>
|
45
|
+
<groupId>org.springframework.boot</groupId>
|
46
|
+
<artifactId>spring-boot-starter-parent</artifactId>
|
47
|
+
<version>2.0.4.RELEASE</version>
|
48
|
+
<relativePath/> <!-- lookup parent from repository -->
|
49
|
+
</parent>
|
50
|
+
|
51
|
+
<properties>
|
52
|
+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
53
|
+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
54
|
+
<java.version>1.8</java.version>
|
55
|
+
</properties>
|
56
|
+
<dependencies>
|
57
|
+
|
58
|
+
<dependency>
|
59
|
+
<groupId>org.springframework.boot</groupId>
|
60
|
+
<artifactId>spring-boot-starter-jdbc</artifactId>
|
61
|
+
</dependency>
|
62
|
+
<dependency>
|
63
|
+
<groupId>org.springframework.boot</groupId>
|
64
|
+
<artifactId>spring-boot-starter-thymeleaf</artifactId>
|
65
|
+
</dependency>
|
66
|
+
<dependency>
|
67
|
+
<groupId>org.springframework.boot</groupId>
|
68
|
+
<artifactId>spring-boot-starter-web</artifactId>
|
69
|
+
</dependency>
|
70
|
+
|
71
|
+
<dependency>
|
72
|
+
<groupId>org.postgresql</groupId>
|
73
|
+
<artifactId>postgresql</artifactId>
|
74
|
+
<scope>runtime</scope>
|
75
|
+
</dependency>
|
76
|
+
<dependency>
|
77
|
+
<groupId>org.springframework.boot</groupId>
|
78
|
+
<artifactId>spring-boot-starter-test</artifactId>
|
79
|
+
<scope>test</scope>
|
80
|
+
</dependency>
|
81
|
+
</dependencies>
|
82
|
+
|
83
|
+
<build>
|
84
|
+
<plugins>
|
85
|
+
<plugin>
|
86
|
+
<groupId>org.springframework.boot</groupId>
|
87
|
+
<artifactId>spring-boot-maven-plugin</artifactId>
|
88
|
+
</plugin>
|
89
|
+
</plugins>
|
90
|
+
</build>
|
91
|
+
|
92
|
+
|
93
|
+
</project>
|
94
|
+
|
95
|
+
```
|
96
|
+
|
29
|
-
|
97
|
+
application.properties
|
98
|
+
```properties
|
99
|
+
spring.datasource.driver-class-name=org.postgresql.Driver
|
100
|
+
spring.datasource.url=jdbc:postgresql://localhost:5432/postgres
|
101
|
+
spring.datasource.username=postgres
|
102
|
+
spring.datasource.password=password
|
103
|
+
```
|
104
|
+
|
30
105
|
初歩的なことで申し訳ないのですが、解決方法を教えていただきたいです。
|
1
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
PostgresSQLにDB接続したく
|
2
2
|
[Spring boot 入門 DB 接続する簡単な Web アプリを作成](https://www.shookuro.com/entry/2017/11/23/121436)
|
3
|
+
を参考に接続しようとしています。
|
3
|
-
|
4
|
+
参考記事の通りに行っているつもりなのですが、'dataSource'エラー(?)が表示されてしまいます。
|
4
5
|
Error内容一部省略しております。
|
5
6
|
|
6
7
|
```Error
|