Home > Back-end >  So Could not get JDBC Connection using a thread pool the main thread is no problem
So Could not get JDBC Connection using a thread pool the main thread is no problem

Time:09-15

# # # The error occurred while executing a query
# # # Cause: org. Springframework. JDBC. CannotGetJdbcConnectionException: Could not get JDBC Connection; Nested exception is com. Alibaba. Druid. Pool. DataSourceClosedException: dataSource already closed at Wed Jun 24 11:12:25 CST 2020

Do not use the thread pool, use the main thread is OK, use the thread pool database was shut down

The following is the database connection pool code:

XMLNS: xsi="http://www.w3.org/2001/XMLSchema-instance" XMLNS: tx="http://www.springframework.org/schema/tx"
XMLNS: context="http://www.springframework.org/schema/context"
XMLNS: task="http://www.springframework.org/schema/task"
Xsi: schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/task
http://www.springframework.org/schema/task/spring-task.xsd "& gt;

Destroy - method="close" & gt;







CodePudding user response:

Which bosses can help have a look at the position for 1 days didn't see the problem to need to provide the information I leave a message to provide my

CodePudding user response:

My is mysql

CodePudding user response:

Remote assistance to see for you?

CodePudding user response:

Add my QQ?
105009010nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related