인코딩 오류 수정

This commit is contained in:
daekuk1
2026-02-03 11:22:06 +09:00
2 changed files with 7 additions and 5 deletions
@@ -9,6 +9,8 @@ import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.client.RestTemplate;
import java.nio.charset.Charset;
import static org.junit.jupiter.api.Assertions.*;
/**
@@ -37,9 +39,9 @@ class LayoutSyncControllerTest {
String url = BASE_URL + "?cmd=Message&schema=APIGW";
// HTTP 헤더 설정
// HTTP 헤더 설정 (EUC-KR)
HttpHeaders headers = new HttpHeaders();
headers.setContentType(MediaType.APPLICATION_XML);
headers.setContentType(new MediaType("application", "xml", Charset.forName("EUC-KR")));
// 요청 생성
HttpEntity<String> request = new HttpEntity<>(requestXml, headers);