인코딩 오류 수정
This commit is contained in:
@@ -6,10 +6,10 @@
|
|||||||
|
|
||||||
<context-root>monitoring</context-root>
|
<context-root>monitoring</context-root>
|
||||||
<session-descriptor>
|
<session-descriptor>
|
||||||
<timeout-secs>3600</timeout-secs>
|
<timeout-secs>1800</timeout-secs>
|
||||||
<cookie-name>JSESSIONID_EMS</cookie-name>
|
<cookie-name>JSESSIONID_EMS</cookie-name>
|
||||||
<persistent-store-type>memory</persistent-store-type>
|
<!-- <persistent-store-type>memory</persistent-store-type>-->
|
||||||
<persistent-store-type>replicated_if_clustered</persistent-store-type>
|
<persistent-store-type>replicated_if_clustered</persistent-store-type>
|
||||||
</session-descriptor>
|
</session-descriptor>
|
||||||
|
|
||||||
<container-descriptor>
|
<container-descriptor>
|
||||||
|
|||||||
+4
-2
@@ -9,6 +9,8 @@ import org.springframework.http.MediaType;
|
|||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
import org.springframework.web.client.RestTemplate;
|
import org.springframework.web.client.RestTemplate;
|
||||||
|
|
||||||
|
import java.nio.charset.Charset;
|
||||||
|
|
||||||
import static org.junit.jupiter.api.Assertions.*;
|
import static org.junit.jupiter.api.Assertions.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -37,9 +39,9 @@ class LayoutSyncControllerTest {
|
|||||||
|
|
||||||
String url = BASE_URL + "?cmd=Message&schema=APIGW";
|
String url = BASE_URL + "?cmd=Message&schema=APIGW";
|
||||||
|
|
||||||
// HTTP 헤더 설정
|
// HTTP 헤더 설정 (EUC-KR)
|
||||||
HttpHeaders headers = new HttpHeaders();
|
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);
|
HttpEntity<String> request = new HttpEntity<>(requestXml, headers);
|
||||||
|
|||||||
Reference in New Issue
Block a user