Caused by: com.alibaba.druid.pool.GetConnectionTimeoutException: wait millis 60000, active 50, maxActive 50, creating 0, .........
使用web页面进行监控,查看数据源跟我们配置文件的是一样的,先后用springboot的方式和tomcat的方式启动,都会有这个错误,数据库连接归还都是自动归还,druid版本1.1.10 配置文件如下spring.datasource.type=com.alibaba.druid.pool.DruidDataSource spring.datasource.druid.initial-size=5 spring.datasource.druid.min-idle=5 spring.datasource.druid.maxActive=25 spring.datasource.druid.maxWait=60000 spring.datasource.druid.timeBetweenEvictionRunsMillis=60000 spring.datasource.druid.minEvictableIdleTimeMillis=90000 spring.datasource.druid.keep-alive=true spring.datasource.druid.remove-abandoned-timeout=90 spring.datasource.druid.remove-abandoned=true spring.datasource.druid.log-abandoned=true spring.datasource.druid.validationQuery=SELECT 1 FROM DUAL spring.datasource.druid.testWhileIdle=true spring.datasource.druid.testOnBorrow=false spring.datasource.druid.testOnReturn=false spring.datasource.druid.poolPreparedStatements=true spring.datasource.druid.maxPoolPreparedStatementPerConnectionSize=100 spring.datasource.druid.filter.stat.merge-sql=false spring.datasource.druid.web-stat-filter.enabled=true spring.datasource.druid.web-stat-filter.url-pattern=/ spring.datasource.druid.web-stat-filter.exclusions=.js,.gif,.jpg,.bmp,.png,.css,.ico,/druid/ spring.datasource.druid.stat-view-servlet.url-pattern=/druid/ spring.datasource.druid.stat-view-servlet.allow= spring.datasource.druid.stat-view-servlet.deny= spring.datasource.druid.stat-view-servlet.reset-enable=true spring.datasource.druid.stat-view-servlet.login-username=admin spring.datasource.druid.stat-view-servlet.login-password=123456 spring.datasource.druid.filter.wall.config.strict-syntax-check=false