質問編集履歴
5
補足説明
title
CHANGED
File without changes
|
body
CHANGED
@@ -3,6 +3,8 @@
|
|
3
3
|
spring bootのコンソールでcom.zaxxer.hikari.pool.HikariPoolという箇所でエラーとなっています。
|
4
4
|
以下使用しているコードとエラーです。
|
5
5
|
|
6
|
+
(データベースをmysqlではなくh2にすると可動します)
|
7
|
+
|
6
8
|
sts3.9.6
|
7
9
|
jdk1.8.0_131
|
8
10
|
|
4
ブラウザの画面削除
title
CHANGED
File without changes
|
body
CHANGED
@@ -158,14 +158,4 @@
|
|
158
158
|
2019-01-05 11:17:55.574 ERROR 1928 --- [ main] com.zaxxer.hikari.pool.HikariPool : HikariPool-1 - Exception during pool initialization.
|
159
159
|
```
|
160
160
|
|
161
|
-
localhost:8080/test01にアクセスしてもエラー
|
162
|
-
```localhost:8080/test01にアクセスしてもエラー
|
163
|
-
Whitelabel Error Page
|
164
|
-
This application has no explicit mapping for /error, so you are seeing this as a fallback.
|
165
|
-
|
166
|
-
Sat Jan 05 16:18:59 JST 2019
|
167
|
-
There was an unexpected error (type=Internal Server Error, status=500).
|
168
|
-
Could not open JPA EntityManager for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Unable to acquire JDBC Connection
|
169
|
-
```
|
170
|
-
|
171
161
|
ご教授のほどよろしくおねがいします。
|
3
コードの説明が抜けていたので追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -6,6 +6,7 @@
|
|
6
6
|
sts3.9.6
|
7
7
|
jdk1.8.0_131
|
8
8
|
|
9
|
+
MainController.java
|
9
10
|
```MainController.java
|
10
11
|
package com.example.demo;
|
11
12
|
import java.util.List;
|
@@ -25,6 +26,7 @@
|
|
25
26
|
}
|
26
27
|
```
|
27
28
|
|
29
|
+
Syain.java
|
28
30
|
```Syain.java
|
29
31
|
package com.example.demo;
|
30
32
|
import javax.persistence.Entity;
|
@@ -53,6 +55,7 @@
|
|
53
55
|
}
|
54
56
|
```
|
55
57
|
|
58
|
+
SyainRepository.java
|
56
59
|
```SyainRepository.java
|
57
60
|
package com.example.demo;
|
58
61
|
import org.springframework.data.jpa.repository.JpaRepository;
|
@@ -61,6 +64,7 @@
|
|
61
64
|
}
|
62
65
|
```
|
63
66
|
|
67
|
+
application.properties
|
64
68
|
```application.properties
|
65
69
|
spring.jpa.hibernate.ddl-auto=none
|
66
70
|
spring.datasource.url=jdbc:mysql://localhost:3306/testphp
|
@@ -68,6 +72,7 @@
|
|
68
72
|
spring.datasource.password=
|
69
73
|
```
|
70
74
|
|
75
|
+
pom.xml
|
71
76
|
```pom.xml
|
72
77
|
<?xml version="1.0" encoding="UTF-8"?>
|
73
78
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
@@ -123,6 +128,7 @@
|
|
123
128
|
</project>
|
124
129
|
```
|
125
130
|
|
131
|
+
xamppのmysqlに追加したddl
|
126
132
|
```xamppのmysqlに追加したddl
|
127
133
|
CREATE TABLE `syain` (
|
128
134
|
`id` int(11) NOT NULL,
|
@@ -135,6 +141,7 @@
|
|
135
141
|
COMMIT;
|
136
142
|
```
|
137
143
|
|
144
|
+
実行したところ springbootのコンソールにエラーが出力されている
|
138
145
|
```実行したところ springbootのコンソールにエラーが出力されている
|
139
146
|
2019-01-05 11:17:52.394 INFO 1928 --- [ main] c.r.web.RiiruSystemApplication : Starting RiiruSystemApplication on Masaki-PC with PID 1928 (C:\Users\Masaki\Documents\workspace-sts-3.9.6.RELEASE\RiiruSystem\target\classes started by Masaki in C:\Users\Masaki\Documents\workspace-sts-3.9.6.RELEASE\RiiruSystem)
|
140
147
|
2019-01-05 11:17:52.399 INFO 1928 --- [ main] c.r.web.RiiruSystemApplication : No active profile set, falling back to default profiles: default
|
@@ -151,6 +158,7 @@
|
|
151
158
|
2019-01-05 11:17:55.574 ERROR 1928 --- [ main] com.zaxxer.hikari.pool.HikariPool : HikariPool-1 - Exception during pool initialization.
|
152
159
|
```
|
153
160
|
|
161
|
+
localhost:8080/test01にアクセスしてもエラー
|
154
162
|
```localhost:8080/test01にアクセスしてもエラー
|
155
163
|
Whitelabel Error Page
|
156
164
|
This application has no explicit mapping for /error, so you are seeing this as a fallback.
|
2
ブラウザのエラーメッセージが間違えていた
title
CHANGED
File without changes
|
body
CHANGED
@@ -155,9 +155,9 @@
|
|
155
155
|
Whitelabel Error Page
|
156
156
|
This application has no explicit mapping for /error, so you are seeing this as a fallback.
|
157
157
|
|
158
|
-
Sat Jan 05
|
158
|
+
Sat Jan 05 16:18:59 JST 2019
|
159
|
-
There was an unexpected error (type=
|
159
|
+
There was an unexpected error (type=Internal Server Error, status=500).
|
160
|
-
|
160
|
+
Could not open JPA EntityManager for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Unable to acquire JDBC Connection
|
161
161
|
```
|
162
162
|
|
163
163
|
ご教授のほどよろしくおねがいします。
|
1
バージョン情報追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
ネットの記事を見て設定しているのですが、spring boot3でxamppのmysqlにアクセスしようとしても、エラーが出て表示されません。
|
2
2
|
|
3
|
+
spring bootのコンソールでcom.zaxxer.hikari.pool.HikariPoolという箇所でエラーとなっています。
|
4
|
+
以下使用しているコードとエラーです。
|
5
|
+
|
6
|
+
sts3.9.6
|
7
|
+
jdk1.8.0_131
|
8
|
+
|
3
9
|
```MainController.java
|
4
10
|
package com.example.demo;
|
5
11
|
import java.util.List;
|