From 39a09d0f5dcc34617da3aa3ff4237239cb5a781a Mon Sep 17 00:00:00 2001 From: eastargh Date: Mon, 13 Jul 2026 17:47:08 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9C=A0=EB=9F=89=EC=A0=9C=EC=96=B4=20url=20?= =?UTF-8?q?=ED=8A=B9=EC=88=98=EB=AC=B8=EC=9E=90=20escape?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../onl/admin/inflow/inflowClientControlManDetail.jsp | 5 ----- .../manage/inflow/inflow/InflowControlManService.java | 11 ++++++++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/WebContent/jsp/onl/admin/inflow/inflowClientControlManDetail.jsp b/WebContent/jsp/onl/admin/inflow/inflowClientControlManDetail.jsp index 54c0cd9..a1a7e04 100644 --- a/WebContent/jsp/onl/admin/inflow/inflowClientControlManDetail.jsp +++ b/WebContent/jsp/onl/admin/inflow/inflowClientControlManDetail.jsp @@ -494,11 +494,6 @@ $(document).ready(function() { 0req -
- 적용 API - 0 - -
diff --git a/src/main/java/com/eactive/eai/rms/onl/manage/inflow/inflow/InflowControlManService.java b/src/main/java/com/eactive/eai/rms/onl/manage/inflow/inflow/InflowControlManService.java index 10e604a..f5d0a0f 100644 --- a/src/main/java/com/eactive/eai/rms/onl/manage/inflow/inflow/InflowControlManService.java +++ b/src/main/java/com/eactive/eai/rms/onl/manage/inflow/inflow/InflowControlManService.java @@ -1,5 +1,6 @@ package com.eactive.eai.rms.onl.manage.inflow.inflow; +import java.net.URI; import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -16,6 +17,7 @@ import org.springframework.data.domain.Pageable; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Service; import org.springframework.web.client.RestTemplate; +import org.springframework.web.util.UriComponentsBuilder; import com.eactive.eai.data.entity.onl.inflow.InflowControl; import com.eactive.eai.data.entity.onl.inflow.InflowControlId; @@ -181,9 +183,12 @@ public class InflowControlManService extends BaseService { serverStatus.put("serverPort", serverPort); try { - String url = String.format("http://%s:%s/manage/inflow/%s/%s/bucket-status", - serverIp, serverPort, target, targetId); - ResponseEntity response = restTemplate.getForEntity(url, Map.class); + URI uri = UriComponentsBuilder.fromHttpUrl(String.format("http://%s:%s/manage/inflow", serverIp, serverPort)) + .pathSegment(target, targetId, "bucket-status") + .build() + .encode() + .toUri(); + ResponseEntity response = restTemplate.getForEntity(uri, Map.class); if (response.getBody() != null && Boolean.TRUE.equals(response.getBody().get("success"))) { serverStatus.put("status", "online");