인코딩 UTF-8로 수정
This commit is contained in:
+4
-1
@@ -5,6 +5,9 @@ plugins {
|
|||||||
id 'war'
|
id 'war'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bootJar.enabled = true
|
||||||
|
jar.enabled = false
|
||||||
|
|
||||||
// WAS, 톰캣에 배포 시 BOOT 실행 요소 제거 배포
|
// WAS, 톰캣에 배포 시 BOOT 실행 요소 제거 배포
|
||||||
bootWar.enabled = false
|
bootWar.enabled = false
|
||||||
war.enabled = true
|
war.enabled = true
|
||||||
@@ -14,7 +17,7 @@ group = 'com.eactive'
|
|||||||
version = '1.0.1'
|
version = '1.0.1'
|
||||||
sourceCompatibility = '1.8'
|
sourceCompatibility = '1.8'
|
||||||
|
|
||||||
compileJava.options.encoding = 'MS949'
|
compileJava.options.encoding = 'UTF-8'
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ public class ApiController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// sleep Àû¿ë
|
// sleep 적용
|
||||||
if (api.getSleepSeconds() != null) {
|
if (api.getSleepSeconds() != null) {
|
||||||
int sleepSeconds = api.getSleepSeconds().intValue();
|
int sleepSeconds = api.getSleepSeconds().intValue();
|
||||||
if (sleepSeconds > 0) {
|
if (sleepSeconds > 0) {
|
||||||
@@ -115,7 +115,7 @@ public class ApiController {
|
|||||||
|
|
||||||
assignResponseHeaders(responseHeaders, api.getResponseHeaders());
|
assignResponseHeaders(responseHeaders, api.getResponseHeaders());
|
||||||
|
|
||||||
// status code Àû¿ë
|
// status code 적용
|
||||||
int responseStatusCode = 200;
|
int responseStatusCode = 200;
|
||||||
if (api.getResponseStatusCode() != null) {
|
if (api.getResponseStatusCode() != null) {
|
||||||
responseStatusCode = api.getResponseStatusCode().intValue();
|
responseStatusCode = api.getResponseStatusCode().intValue();
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ public interface Script {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Script Process Function
|
* Script Process Function
|
||||||
* @param requestMessage 수신 받은 요청 메시지
|
* @param requestMessage 수신 받은 요청 메시지
|
||||||
* @param responseMessage 정의된 응답 메시지
|
* @param responseMessage 정의된 응답 메시지
|
||||||
* @return 스크립트 수행 후 응답 할 메시지
|
* @return 스크립트 수행 후 응답 할 메시지
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
public String postProcess(String requestMessage, String responseMessage) throws Exception;
|
public String postProcess(String requestMessage, String responseMessage) throws Exception;
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ public class ScriptController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (BooleanUtils.toBoolean(spec.getUseYn())) {
|
if (BooleanUtils.toBoolean(spec.getUseYn())) {
|
||||||
// ±âÁ¸¼³Á¤ useYn=NÀ¸·Î ¼öÁ¤
|
// 기존설정 useYn=N으로 수정
|
||||||
scriptInfoService.setUnuseOthers(spec.getId());
|
scriptInfoService.setUnuseOthers(spec.getId());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -28,9 +28,9 @@ public class ScriptLoader{
|
|||||||
private String classPath = null;
|
private String classPath = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BOOT 일 경우 JAR 내의 Class 목록이 BOOT-INF로 들어가서 컴파일시 참조가 안되는 문제가 있음
|
* BOOT 일 경우 JAR 내의 Class 목록이 BOOT-INF로 들어가서 컴파일시 참조가 안되는 문제가 있음
|
||||||
* 임시로 /tmp 폴더에 압축해제하여 해당 경로를 참조하게 하였으나 메모리 내에서 참조가능거나 jar파일을 직접 참조 할 수 있는 방안을 찾아볼 예정임
|
* 임시로 /tmp 폴더에 압축해제하여 해당 경로를 참조하게 하였으나 메모리 내에서 참조가능거나 jar파일을 직접 참조 할 수 있는 방안을 찾아볼 예정임
|
||||||
* Groovy 스크립트로 변경도 검토 중
|
* Groovy 스크립트로 변경도 검토 중
|
||||||
*/
|
*/
|
||||||
private ScriptLoader(){
|
private ScriptLoader(){
|
||||||
this.loadedClass = new HashMap<>();
|
this.loadedClass = new HashMap<>();
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ public class EchoSocketServerHandler extends ChannelInboundHandlerAdapter {
|
|||||||
logger.info("Response Message=" + responseMsg);
|
logger.info("Response Message=" + responseMsg);
|
||||||
logger.info("==================================================");
|
logger.info("==================================================");
|
||||||
|
|
||||||
// sleep Àû¿ë
|
// sleep
|
||||||
if (spec.getSleepSeconds() != null) {
|
if (spec.getSleepSeconds() != null) {
|
||||||
int sleepSeconds = spec.getSleepSeconds().intValue();
|
int sleepSeconds = spec.getSleepSeconds().intValue();
|
||||||
if (sleepSeconds > 0) {
|
if (sleepSeconds > 0) {
|
||||||
|
|||||||
@@ -74,13 +74,13 @@ public class SocketServerManageController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (BooleanUtils.toBoolean(spec.getUseYn())) {
|
if (BooleanUtils.toBoolean(spec.getUseYn())) {
|
||||||
// 기존서버 중지
|
// 기존서버 중지
|
||||||
stop();
|
stop();
|
||||||
|
|
||||||
// 기존설정 useYn=N으로 수정
|
// 기존설정 useYn=N으로 수정
|
||||||
specService.setUnuseOthers(spec.getId());
|
specService.setUnuseOthers(spec.getId());
|
||||||
|
|
||||||
// 서버 기동
|
// 서버 기동
|
||||||
start();
|
start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user