修复druid去广告
This commit is contained in:
parent
c18ed644f4
commit
e981c462ec
@ -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 # 密码
|
||||||
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user