|
@@ -122,7 +122,7 @@ public class DruidDBConfig {
|
|
//reg.addInitParameter("loginPassword","123456");
|
|
//reg.addInitParameter("loginPassword","123456");
|
|
Map<String,String> initParams=new HashMap<>();
|
|
Map<String,String> initParams=new HashMap<>();
|
|
initParams.put("loginUsername","admin");
|
|
initParams.put("loginUsername","admin");
|
|
- initParams.put("loginPassword","123456");
|
|
|
|
|
|
+ initParams.put("loginPassword","As2df%^#*jjj");
|
|
initParams.put("allow","");//默认允许所有访问
|
|
initParams.put("allow","");//默认允许所有访问
|
|
//initParams.put("deny","192.168.1.7");//
|
|
//initParams.put("deny","192.168.1.7");//
|
|
reg.setInitParameters(initParams);
|
|
reg.setInitParameters(initParams);
|