Prechádzať zdrojové kódy

优化:修复安全漏洞。

lym 1 rok pred
rodič
commit
f568745f44

+ 4 - 1
src/main/java/com/hywa/banktest/config/DruidDBConfig.java

@@ -129,7 +129,10 @@ public class DruidDBConfig {
         ServletRegistrationBean reg = new ServletRegistrationBean();
         reg.setServlet(new StatViewServlet());
         reg.addUrlMappings("/druid/*");
-        reg.addInitParameter("allow", ""); //白名单
+        reg.addInitParameter("allow", "127.0.0.1,localhost"); //白名单
+        reg.addInitParameter("loginUsername","admin");
+        reg.addInitParameter("loginPassword","adminThmm321");
+        reg.addInitParameter("resetEnable","false");
         return reg;
     }