springboot启动,一直报异常maxActive can't not set zero,配置文件写的没问题呀?

图片说明
springboot启动,一直报异常maxActive can't not set zero,配置文件写的没问题呀?图片说明

yml配置是匹配的,但是这些属性都没有,不是null,就是0

应该是连接池中最大活跃数设置的问题吧,改个数字试试

spring boot出现maxActive can't not set zero原因分析
1.使用eclipse的情况下可能出现src/main/resources未添加到source folder的问题
2.mysql包使用了runtime选项

你用的DruidDatasouceBean这个类是哪个版本的jar包