修复druid去广告

This commit is contained in:
dftre 2025-01-11 09:32:28 +08:00
parent c18ed644f4
commit e981c462ec
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ spring:
# 监控视图配置 # 监控视图配置
stat-view-servlet: stat-view-servlet:
enabled: true enabled: true
url-pattern: /druid/*+ url-pattern: /druid/*
reset-enable: true # 是否可以重置日志 reset-enable: true # 是否可以重置日志
login-username: ruoyi # 用户名 login-username: ruoyi # 用户名
login-password: 123456 # 密码 login-password: 123456 # 密码

View File

@ -43,7 +43,7 @@ public class DruidConfig {
*/ */
@SuppressWarnings({ "rawtypes", "unchecked" }) @SuppressWarnings({ "rawtypes", "unchecked" })
@Bean @Bean
@ConditionalOnProperty(name = "spring.datasource.druid.statViewServlet.enabled", havingValue = "true") @ConditionalOnProperty(name = "spring.datasource.druid.stat-view-servlet.enabled", havingValue = "true")
FilterRegistrationBean removeDruidFilterRegistrationBean(DruidStatProperties properties) { FilterRegistrationBean removeDruidFilterRegistrationBean(DruidStatProperties properties) {
// 获取web监控页面的参数 // 获取web监控页面的参数
DruidStatProperties.StatViewServlet config = properties.getStatViewServlet(); DruidStatProperties.StatViewServlet config = properties.getStatViewServlet();