config: config set

main
minuk926 2 years ago
parent 1aab5db212
commit f9e5cb2005

@ -23,8 +23,12 @@ import java.util.*;
public abstract class BaseMpowerDaoSupport { public abstract class BaseMpowerDaoSupport {
@Value("${mpower.dbName}") @Value("${mpower.dbName}")
private String dbName; private String dbName;
private String hostip = "127.0.0.1";
private int port = 9999; @Value("${mpower.hostIp}")
private String hostIp;
@Value("${mpower.port}")
private int port;
public void setDbName(String dbName){ public void setDbName(String dbName){
this.dbName = dbName; this.dbName = dbName;
@ -343,7 +347,7 @@ public abstract class BaseMpowerDaoSupport {
} }
private Client getConnection(){ private Client getConnection(){
Client mpowerClient = new Client(hostip, port); Client mpowerClient = new Client(hostIp, port);
mpowerClient.setCryptEnable(false); mpowerClient.setCryptEnable(false);
try { try {
mpowerClient.getConnection("MPowerXmlToQuery.xmlQuery1"); mpowerClient.getConnection("MPowerXmlToQuery.xmlQuery1");

@ -30,4 +30,6 @@ file:
size: 10000000 size: 10000000
mpower: mpower:
hostIp: 127.0.0.1
port: 9999
dbName: gn dbName: gn

Loading…
Cancel
Save