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哟

发布了75 篇原创文章 · 获赞 12 · 访问量 3464

猜你喜欢

转载自blog.csdn.net/weixin_44737877/article/details/102998931