Failed to bind properties under 'spring.datasource' to javax.sql.DataSource:

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2020-10-28 19:54:03.822 ERROR 24084 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 

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

Description:

Failed to bind properties under 'spring.datasource' to javax.sql.DataSource:

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

Action:

Update your application's configuration

 SpringBoot整合druid时,控制台报出以上错误,按照要求添加log4j的maven依赖,问题解决

 

posted @ 2020-10-28 20:00  等不到的口琴  阅读(461)  评论(0)    收藏  举报