Failed to bind properties under 'spring.datasource.druid' to javax.sql.DataS

配置druid的时候出现错误


***************************
APPLICATION FAILED TO START
***************************

Description:

Failed to bind properties under 'spring.datasource.druid' to javax.sql.DataS

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

Action:

Update your application's configuration

出错原因:

Value: stat,wall,log4j

这个没有导入依赖包

 <!-- https://mvnrepository.com/artifact/log4j/log4j -->
        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
            <version>1.2.17</version>
        </dependency>

然后就ok了,还要配置一下log4j哟

你可能感兴趣的:(spring,boot)