質問編集履歴
4
エラーメッセージ
title
CHANGED
File without changes
|
body
CHANGED
@@ -10,19 +10,20 @@
|
|
10
10
|
### 発生している問題・エラーメッセージ
|
11
11
|
eclipceのプロジェクトを実行した後、作成したwebページにローカルホストでアクセスしたときにエラーが発生します
|
12
12
|
```
|
13
|
-
Whitelabel Error Page
|
14
13
|
This application has no explicit mapping for /error, so you are seeing this as a fallback.
|
15
14
|
|
16
|
-
Tue Apr 20
|
15
|
+
Tue Apr 20 14:05:02 JST 2021
|
17
16
|
There was an unexpected error (type=Internal Server Error, status=500).
|
18
|
-
Could not open JDBC Connection for transaction; nested exception is java.sql.
|
19
|
-
org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is java.sql.
|
17
|
+
Could not open JDBC Connection for transaction; nested exception is java.sql.SQLNonTransientConnectionException: Could not create connection to database server.
|
18
|
+
org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is java.sql.SQLNonTransientConnectionException: Could not create connection to database server.
|
20
19
|
at org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:309)
|
21
20
|
at org.springframework.transaction.support.AbstractPlatformTransactionManager.startTransaction(AbstractPlatformTransactionManager.java:400)
|
22
21
|
at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:373)
|
22
|
+
at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:595)
|
23
|
+
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:382)
|
24
|
+
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119)
|
25
|
+
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
|
23
26
|
以下省略
|
24
|
-
```
|
25
|
-
|
26
27
|
### 該当のソースコード
|
27
28
|
|
28
29
|
```pom.xml
|
3
エラーメッセージ
title
CHANGED
File without changes
|
body
CHANGED
@@ -13,10 +13,13 @@
|
|
13
13
|
Whitelabel Error Page
|
14
14
|
This application has no explicit mapping for /error, so you are seeing this as a fallback.
|
15
15
|
|
16
|
-
|
16
|
+
Tue Apr 20 13:38:27 JST 2021
|
17
17
|
There was an unexpected error (type=Internal Server Error, status=500).
|
18
|
-
Could not open JDBC Connection for transaction; nested exception is java.sql.
|
19
|
-
org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is java.sql.
|
18
|
+
Could not open JDBC Connection for transaction; nested exception is java.sql.SQLSyntaxErrorException: Unknown database 'localhost:3306/testdb'
|
19
|
+
org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is java.sql.SQLSyntaxErrorException: Unknown database 'localhost:3306/testdb'
|
20
|
+
at org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:309)
|
21
|
+
at org.springframework.transaction.support.AbstractPlatformTransactionManager.startTransaction(AbstractPlatformTransactionManager.java:400)
|
22
|
+
at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:373)
|
20
23
|
以下省略
|
21
24
|
```
|
22
25
|
|
2
タイトル
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
spring boot
|
1
|
+
spring bootからデータベースに接続できない問題を解決したい
|
body
CHANGED
File without changes
|
1
試したことを更新しました
title
CHANGED
File without changes
|
body
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
windows10
|
7
7
|
eclipce(pleiades all in one)
|
8
8
|
spring tool 4
|
9
|
-
|
9
|
+
mysql8.0
|
10
10
|
### 発生している問題・エラーメッセージ
|
11
11
|
eclipceのプロジェクトを実行した後、作成したwebページにローカルホストでアクセスしたときにエラーが発生します
|
12
12
|
```
|
@@ -103,6 +103,6 @@
|
|
103
103
|
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
104
104
|
```
|
105
105
|
### 試したこと
|
106
|
+
mysqlの3306ポート開放
|
106
107
|
|
107
|
-
|
108
108
|
### 補足情報(FW/ツールのバージョンなど)
|