diff --git a/src/main/java/com/palnet/server/command/SocketCommand.java b/src/main/java/com/palnet/server/command/SocketCommand.java index 3951bd2..01a52d6 100644 --- a/src/main/java/com/palnet/server/command/SocketCommand.java +++ b/src/main/java/com/palnet/server/command/SocketCommand.java @@ -143,8 +143,8 @@ public class SocketCommand { // STEP 1. Control ID 발급 -> Application Server Http 통신 try { HttpRequest request = HttpRequest.newBuilder() -// .uri(new URI("http://127.0.0.1:8080/api/ctr/cntrl/id/" + model.getObjectId())) .uri(new URI( +// "http://211.253.38.218:8080/api/ctr/cntrl/id/" + model.getObjectId() env.getProperty("app.host") + "api/ctr/cntrl/id/" + model.getObjectId() + "/" + model.getLat() + "/" + model.getLng() @@ -158,7 +158,7 @@ public class SocketCommand { .newHttpClient() .send(request, HttpResponse.BodyHandlers.ofString()); -// logger.info("CONTROL ID RESPONSE : {}", response.body()); + logger.info("CONTROL ID RESPONSE : {}", response.body()); Map body = JsonUtils.fromJson(response.body(), HashMap.class); diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 509e399..4145794 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -121,7 +121,7 @@ logging: com.palnet: debug app: - host: http://pav.palntour.com/ + host: http://211.253.38.218:8080/ --- @@ -170,4 +170,4 @@ logging: com.palnet: debug app: - host: http://pav.palntour.com/ \ No newline at end of file + host: http://211.253.38.218:8080/ \ No newline at end of file