druid-spring-boot-starter为什么读不到配置

application.properties
中配置了

application.properties配置

spring.datasource.druid.stat-view-servlet.enabled=false
spring.datasource.druid.web-stat-filter.enabled=false
启动时报错

org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is java.lang.IllegalArgumentException: Unable to set initialisation parameters for filter due to null name and/or value. Name [loginUsername], Value [null]

手动配置Bean 配置也无效

展开
收起
cengan 2025-07-04 16:37:51 23 分享 版权
0 条回答
写回答
取消 提交回答
问答地址: