o.s.boot.actuate.health.DataSourceHealthIndicator - Health check failed org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is com.alibaba.druid.pool.GetConnectionTimeoutException: wait millis 60000, active 300, maxActive 300, creating 0
这个问题是druid 1.2.8版本之前 的bug (connections 中存在两个完全相同的 holder 导致activeCount计数不准确)应用拿不到连接对象,Druid 获取连接异常导致应用挂起。
只需将druid 版本提升至1.2.8之上