报错信息:

Failed to bind properties under ‘spring.datasource.druid’ to javax.sql.DataSource:

Property: spring.datasource.druid.filters
Value: stat,wall,log4j
Origin: class path resource [application.yml]:21:16
Reason: org.apache.log4j.Priority

 

解决方案:
缺少log4j的包,依赖如下:

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</dependency>

Leave a Reply

电子邮件地址不会被公开。 必填项已用*标注