spring boot 的热部署devtools,restart会导致dataSource关闭,但不会重启,报错Druid dataSorce already closed
Open
- Dominant language
- Java
- Stars
- 28.2k
- Forks
- 8.6k
- PR merge metrics
- No merged PRs in 30d
Description
Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is com.alibaba.druid.pool.DataSourceClosedException: dataSource already closed at xxxx
Contributor guide
Research direction
Start by reproducing the failure with Spring Boot DevTools restart and the Druid datasource, then trace the datasource lifecycle around restart. Done means the application can obtain JDBC connections after restart without a DataSourceClosedException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring-boot
- Domain
- backend, database
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100