ip 가져오기 수정
This commit is contained in:
parent
8269036e07
commit
cc096b030b
@ -52,7 +52,7 @@ public class SchedulerUtil {
|
|||||||
private String dmzIp2 = "222.231.43.69";
|
private String dmzIp2 = "222.231.43.69";
|
||||||
|
|
||||||
//10분마다 실행
|
//10분마다 실행
|
||||||
@Scheduled(cron = "0 0/10 * * * *")
|
@Scheduled(cron = "0 0/1 * * * *")
|
||||||
@SchedulerLock(name = "kakaoAtSendPrcs", lockAtMostForString = ONE_MIN, lockAtLeastForString = ONE_MIN)
|
@SchedulerLock(name = "kakaoAtSendPrcs", lockAtMostForString = ONE_MIN, lockAtLeastForString = ONE_MIN)
|
||||||
public void kakaoAtSendPrcs() throws Exception {
|
public void kakaoAtSendPrcs() throws Exception {
|
||||||
System.out.println("===========at scheduler run============");
|
System.out.println("===========at scheduler run============");
|
||||||
@ -78,8 +78,6 @@ public class SchedulerUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
hostAddr = InetAddress.getLocalHost().getHostAddress();
|
|
||||||
|
|
||||||
System.out.println("server ip ============" + hostAddr);
|
System.out.println("server ip ============" + hostAddr);
|
||||||
if(hostAddr.equals(myLocalIp) || hostAddr.equals(devIp) || hostAddr.equals(dmzIp1) || hostAddr.equals(dmzIp2) ) {
|
if(hostAddr.equals(myLocalIp) || hostAddr.equals(devIp) || hostAddr.equals(dmzIp1) || hostAddr.equals(dmzIp2) ) {
|
||||||
//접속 서버 별 분기처리 필요
|
//접속 서버 별 분기처리 필요
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user