We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e9eff6 commit bf4bf8cCopy full SHA for bf4bf8c
springboot-druid/src/main/java/cn/tellsea/config/DruidConfig.java
@@ -29,7 +29,7 @@ public ServletRegistrationBean druidServlet() {
29
log.info("初始化druid servlet配置 ");
30
ServletRegistrationBean servletRegistrationBean = new ServletRegistrationBean(new StatViewServlet(), "/druid/*");
31
// IP白名单
32
- servletRegistrationBean.addInitParameter("allow", "*");
+ servletRegistrationBean.addInitParameter("allow", "127.0.0.1");
33
// IP黑名单(共同存在时,deny优先于allow)
34
servletRegistrationBean.addInitParameter("deny", "192.168.1.100");
35
//控制台管理用户
0 commit comments