property 기본값 변경
This commit is contained in:
@@ -29,17 +29,17 @@ public class KjbProperty {
|
||||
@NotEmpty
|
||||
private String eaiBatchCharset = "euc-kr";
|
||||
|
||||
@KjbPropertyValue(key = "kjb.ums.eai_batch.send_dir")
|
||||
@KjbPropertyValue(key = "kjb.ums.eai_batch.send_dir", defaultValue = "/Data/eapim/portal/sendmail/snd")
|
||||
@NotEmpty(message = "kjb.ums.eai_batch.send_dir 는 필수값입니다.")
|
||||
private String umsEaiBatchSendDir;
|
||||
private String umsEaiBatchSendDir = "/Data/eapim/portal/sendmail/snd";
|
||||
|
||||
@KjbPropertyValue(key = "kjb.ums.eai_batch.backup_dir")
|
||||
@KjbPropertyValue(key = "kjb.ums.eai_batch.backup_dir", defaultValue = "/Data/eapim/portal/sendmail/bak")
|
||||
@NotEmpty(message = "kjb.ums.eai_batch.backup_dir 는 필수값입니다.")
|
||||
private String umsEaiBatchBackupDir;
|
||||
private String umsEaiBatchBackupDir = "/Data/eapim/portal/sendmail/bak";
|
||||
|
||||
@KjbPropertyValue(key = "kjb.ums.eai_batch.error_dir")
|
||||
@KjbPropertyValue(key = "kjb.ums.eai_batch.error_dir", defaultValue = "/Data/eapim/portal/sendmail/bak")
|
||||
@NotEmpty(message = "kjb.ums.eai_batch.error_dir 는 필수값입니다.")
|
||||
private String umsEaiBatchErrorDir;
|
||||
private String umsEaiBatchErrorDir = "/Data/eapim/portal/sendmail/bak";
|
||||
|
||||
@KjbPropertyValue(key = "kjb.ums.eai_batch.interface_id")
|
||||
@Pattern(regexp = "^[a-zA-Z0-9]{13}$", message = "kjb.ums.eai_batch.interface_id 는 12자리 영문대소문자 및 숫자 조합이어야 합니다.")
|
||||
|
||||
@@ -54,7 +54,12 @@ public class KjbUmsService {
|
||||
isRealMode = property.getUmsHostUrl() != null && StringUtils.isNotEmpty(property.getUmsHostUrl().trim());
|
||||
|
||||
if (isRealMode) {
|
||||
ValidationUtil.validateOrThrow(property);
|
||||
try {
|
||||
ValidationUtil.validateOrThrow(property);
|
||||
} catch (Exception e) {
|
||||
log.error("[KJB-UMS] 파라미터 설정 오류", e);
|
||||
throw e;
|
||||
}
|
||||
|
||||
httpClient = HttpClients.createDefault();
|
||||
requestConfig = RequestConfig.custom()
|
||||
|
||||
Reference in New Issue
Block a user