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