Commit 290a981cae0c99a506caac543bb1c4797e219c6b
1 parent
f381568f
【修复】全局:移除 Druid 广告逻辑未按照期望执行
Showing
1 changed file
with
1 additions
and
1 deletions
yudao-framework/yudao-spring-boot-starter-mybatis/src/main/java/cn/iocoder/yudao/framework/datasource/config/YudaoDataSourceAutoConfiguration.java
| ... | ... | @@ -23,7 +23,7 @@ public class YudaoDataSourceAutoConfiguration { |
| 23 | 23 | * 创建 DruidAdRemoveFilter 过滤器,过滤 common.js 的广告 |
| 24 | 24 | */ |
| 25 | 25 | @Bean |
| 26 | - @ConditionalOnProperty(name = "spring.datasource.druid.web-stat-filter.enabled", havingValue = "true") | |
| 26 | + @ConditionalOnProperty(name = "spring.datasource.druid.stat-view-servlet.enabled", havingValue = "true") | |
| 27 | 27 | public FilterRegistrationBean<DruidAdRemoveFilter> druidAdRemoveFilterFilter(DruidStatProperties properties) { |
| 28 | 28 | // 获取 druid web 监控页面的参数 |
| 29 | 29 | DruidStatProperties.StatViewServlet config = properties.getStatViewServlet(); | ... | ... |