|
|
|
@ -1,5 +1,7 @@
|
|
|
|
|
package com.foreverwin.mesnac.console.initMethod;
|
|
|
|
|
|
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
|
import org.springframework.boot.ApplicationArguments;
|
|
|
|
|
import org.springframework.boot.ApplicationRunner;
|
|
|
|
@ -15,6 +17,7 @@ import org.springframework.stereotype.Component;
|
|
|
|
|
@Order(value = 1)
|
|
|
|
|
public class ApplicationRunnerInitial implements ApplicationRunner {
|
|
|
|
|
|
|
|
|
|
private static Logger logger = LoggerFactory.getLogger(ApplicationRunnerInitial.class);
|
|
|
|
|
@Value("${ws.erp.server}")
|
|
|
|
|
private String erpServer;
|
|
|
|
|
@Value("${ws.erp.port}")
|
|
|
|
@ -34,6 +37,12 @@ public class ApplicationRunnerInitial implements ApplicationRunner {
|
|
|
|
|
System.setProperty("ws.erp.username", erpUser);
|
|
|
|
|
System.setProperty("ws.erp.password", erpPwd);
|
|
|
|
|
System.setProperty("ws.erp.valid", valid);
|
|
|
|
|
|
|
|
|
|
logger.info(System.getProperty("ws.erp.server"));
|
|
|
|
|
logger.info(System.getProperty("ws.erp.port"));
|
|
|
|
|
logger.info(System.getProperty("ws.erp.username"));
|
|
|
|
|
logger.info(System.getProperty("ws.erp.password"));
|
|
|
|
|
logger.info(System.getProperty("ws.erp.valid"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|