新增监控开关参数 服务器监控 state.server 缓存监控 state.cache 数据监控 state.druid

This commit is contained in:
thinkgem
2024-09-23 13:32:53 +08:00
parent c295b87f35
commit 5b9a7c1d2c
2 changed files with 8 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ import java.io.IOException;
* @version 2017年11月30日
*/
@Configuration(proxyBeanMethods = false)
@ConditionalOnProperty(name="state.enabled", havingValue="true", matchIfMissing=true)
@ConditionalOnProperty(name={"state.enabled","state.druid"}, havingValue="true", matchIfMissing=true)
public class DruidStatConfig {
/**
@@ -43,7 +43,7 @@ public class DruidStatConfig {
bean.addUrlPatterns("/*");
return bean;
}
/**
* 注册DruidServlet
*/

View File

@@ -343,6 +343,12 @@ gen:
# 系统监控
state:
enabled: true
# 服务器监控
server: true
# 缓存监控
cache: true
# 数据监控
druid: true
#======================================#
#========= Framework settings =========#