refactor: 문서중개자 API URL properties 경로 변경

dev
gitea-관리자 1 year ago
parent c9c7cf48a2
commit 0df0ed89e5

@ -47,9 +47,9 @@ import org.springframework.transaction.annotation.Transactional;
public class BizKtMmsService extends EgovAbstractServiceImpl implements IBizKtMmsService { public class BizKtMmsService extends EgovAbstractServiceImpl implements IBizKtMmsService {
private static final int MAX_KT_SEND_CNT = 100; private static final int MAX_KT_SEND_CNT = 100;
@Value("${contract.kt.api.dp-callback-url}") @Value("${app.contract.kt.api.dp-callback-url}")
private String DP_CALLBACK_URL; private String DP_CALLBACK_URL;
@Value("${contract.kt.api.me-callback-url}") @Value("${app.contract.kt.api.me-callback-url}")
private String ME_CALLBACK_URL; private String ME_CALLBACK_URL;
private final IKtMmsService ktMmsService; private final IKtMmsService ktMmsService;

@ -37,10 +37,10 @@ import org.springframework.stereotype.Service;
@RequiredArgsConstructor @RequiredArgsConstructor
@Service @Service
public class EpostService extends EgovAbstractServiceImpl implements IEpostService { public class EpostService extends EgovAbstractServiceImpl implements IEpostService {
@Value("${contract.epost.host}") @Value("${app.contract.epost.host}")
private String HOST; private String HOST;
@Value("${contract.epost.api.postTrackInfo}") @Value("${app.contract.epost.api.postTrackInfo}")
private String POST_TRACK_INFO; private String POST_TRACK_INFO;
private final ApiWebClientUtil webClient; private final ApiWebClientUtil webClient;

@ -60,7 +60,7 @@ import org.springframework.stereotype.Component;
public class AsyncKkopayEltrcDocService extends EgovAbstractServiceImpl implements public class AsyncKkopayEltrcDocService extends EgovAbstractServiceImpl implements
IAsyncKkopayEltrcDocService { IAsyncKkopayEltrcDocService {
@Value("${contract.kakao.host}") @Value("${app.contract.kakao.host}")
private String HOST; private String HOST;
@Value("#{'${contract.kakao.api.send}'.split(';')}") @Value("#{'${contract.kakao.api.send}'.split(';')}")
private String[] API_SEND; private String[] API_SEND;

@ -60,7 +60,7 @@ import org.springframework.stereotype.Component;
public class KkopayEltrcDocService extends EgovAbstractServiceImpl implements public class KkopayEltrcDocService extends EgovAbstractServiceImpl implements
IKkopayEltrcDocService { IKkopayEltrcDocService {
@Value("${contract.kakao.host}") @Value("${app.contract.kakao.host}")
private String HOST; private String HOST;
@Value("#{'${contract.kakao.api.send}'.split(';')}") @Value("#{'${contract.kakao.api.send}'.split(';')}")
private String[] API_SEND; private String[] API_SEND;

@ -62,7 +62,7 @@ import org.springframework.stereotype.Service;
@RequiredArgsConstructor @RequiredArgsConstructor
@Service @Service
public class KtMmsService extends EgovAbstractServiceImpl implements IKtMmsService { public class KtMmsService extends EgovAbstractServiceImpl implements IKtMmsService {
@Value("${contract.kt.host}") @Value("${app.contract.kt.host}")
private String HOST; private String HOST;
//----------------------------------------------------------------- //-----------------------------------------------------------------
// mens 사용 API // mens 사용 API
@ -70,22 +70,22 @@ public class KtMmsService extends EgovAbstractServiceImpl implements IKtMmsServi
/** /**
* *
*/ */
@Value("${contract.kt.api.generate-token}") @Value("${app.contract.kt.api.generate-token}")
private String API_GENERATE_TOKEN; private String API_GENERATE_TOKEN;
/** /**
* : BC-AG-SN-002 * : BC-AG-SN-002
*/ */
@Value("${contract.kt.api.main-send}") @Value("${app.contract.kt.api.main-send}")
private String API_MAIN_SEND; private String API_MAIN_SEND;
/** /**
* : BC-AG-SN-008 * : BC-AG-SN-008
*/ */
@Value("${contract.kt.api.cfm-token}") @Value("${app.contract.kt.api.cfm-token}")
private String API_CFM_TOKEN; private String API_CFM_TOKEN;
/** /**
* : BC-AG-SN-009 * : BC-AG-SN-009
*/ */
@Value("${contract.kt.api.read-token}") @Value("${app.contract.kt.api.read-token}")
private String API_READ_TOKEN; private String API_READ_TOKEN;
//----------------------------------------------------------- //-----------------------------------------------------------
@ -97,62 +97,62 @@ public class KtMmsService extends EgovAbstractServiceImpl implements IKtMmsServi
/** /**
* : BC-AG-SN-001 * : BC-AG-SN-001
*/ */
@Value("${contract.kt.api.before-send}") @Value("${app.contract.kt.api.before-send}")
private String API_BEFORE_SEND; private String API_BEFORE_SEND;
/** /**
* : BC-AG-SN-007 * : BC-AG-SN-007
*/ */
@Value("${contract.kt.api.blacklist}") @Value("${app.contract.kt.api.blacklist}")
private String API_BLACKLIST; private String API_BLACKLIST;
/** /**
* : BC-AG-SN-011 * : BC-AG-SN-011
*/ */
@Value("${contract.kt.api.send-sttc}") @Value("${app.contract.kt.api.send-sttc}")
private String API_SEND_STTC; private String API_SEND_STTC;
/** /**
* : BC-AG-SN-012 * : BC-AG-SN-012
*/ */
@Value("${contract.kt.api.send-sttcdtl}") @Value("${app.contract.kt.api.send-sttcdtl}")
private String API_SEND_STTCDTL; private String API_SEND_STTCDTL;
/** /**
* whitelist : BC-AG-SN-013 * whitelist : BC-AG-SN-013
*/ */
@Value("${contract.kt.api.whitelist}") @Value("${app.contract.kt.api.whitelist}")
private String API_WHITELIST; private String API_WHITELIST;
/** /**
* : BC-AG-SM-001 * : BC-AG-SM-001
*/ */
@Value("${contract.kt.api.cerf-acmd}") @Value("${app.contract.kt.api.cerf-acmd}")
private String API_CERF_ACMD; private String API_CERF_ACMD;
/** /**
* : BC-AG-SM-002 * : BC-AG-SM-002
*/ */
@Value("${contract.kt.api.exca-token}") @Value("${app.contract.kt.api.exca-token}")
private String API_EXCA_ACMD; private String API_EXCA_ACMD;
/** /**
* : BC-AG-EC-001 * : BC-AG-EC-001
*/ */
@Value("${contract.kt.api.exca}") @Value("${app.contract.kt.api.exca}")
private String API_EXCA; private String API_EXCA;
/** /**
* : BC-AG-HS-001 * : BC-AG-HS-001
*/ */
@Value("${contract.kt.api.info-acmd}") @Value("${app.contract.kt.api.info-acmd}")
private String API_INFO_ACMD; private String API_INFO_ACMD;
/** /**
* : BC-AG-HS-002 * : BC-AG-HS-002
*/ */
@Value("${contract.kt.api.cfm-acmd}") @Value("${app.contract.kt.api.cfm-acmd}")
private String API_CFM_ACMD; private String API_CFM_ACMD;
/** /**
* : BC-AG-SN-014 * : BC-AG-SN-014
*/ */
@Value("${contract.kt.api.refuse-rcv}") @Value("${app.contract.kt.api.refuse-rcv}")
private String API_REFUSE_RCV; private String API_REFUSE_RCV;
/** /**
* : BC-AG-SN-015 * : BC-AG-SN-015
*/ */
@Value("${contract.kt.api.approve-rcv}") @Value("${app.contract.kt.api.approve-rcv}")
private String API_APPROVE_RCV; private String API_APPROVE_RCV;
private final ApiWebClientUtil webClient; private final ApiWebClientUtil webClient;

@ -46,17 +46,17 @@ import org.springframework.util.Base64Utils;
@Service @Service
public class NiceCiService extends EgovAbstractServiceImpl implements INiceCiService { public class NiceCiService extends EgovAbstractServiceImpl implements INiceCiService {
@Value("${contract.nice.host}") @Value("${app.contract.nice.host}")
private String HOST; private String HOST;
@Value("${contract.nice.api.generate-token}") @Value("${app.contract.nice.api.generate-token}")
private String API_GENERATE_TOKEN; private String API_GENERATE_TOKEN;
@Value("${contract.nice.api.revoke-token}") @Value("${app.contract.nice.api.revoke-token}")
private String API_REVOKE_TOKEN; private String API_REVOKE_TOKEN;
@Value("${contract.nice.api.publickey}") @Value("${app.contract.nice.api.publickey}")
private String API_PUBLICKEY; private String API_PUBLICKEY;
@Value("${contract.nice.api.symmetrickey}") @Value("${app.contract.nice.api.symmetrickey}")
private String API_SYMMETRICKEY; private String API_SYMMETRICKEY;
@Value("${contract.nice.api.ci}") @Value("${app.contract.nice.api.ci}")
private String API_CI; private String API_CI;
private static final String AUTH_TYPE_BASIC = "Basic"; private static final String AUTH_TYPE_BASIC = "Basic";

@ -52,13 +52,13 @@ public class PplusService extends EgovAbstractServiceImpl implements IPplusServi
@Value("${file.cmm.temp-path}") @Value("${file.cmm.temp-path}")
private String FILE_TEMP_PATH; private String FILE_TEMP_PATH;
@Value("${contract.pplus.host}") @Value("${app.contract.pplus.host}")
private String HOST; private String HOST;
@Value("${contract.pplus.api.accept}") @Value("${app.contract.pplus.api.accept}")
private String ACCEPT; private String ACCEPT;
@Value("${contract.pplus.api.status}") @Value("${app.contract.pplus.api.status}")
private String STATUS; private String STATUS;
private final ApiWebClientUtil webClient; private final ApiWebClientUtil webClient;

@ -36,9 +36,9 @@ import org.springframework.transaction.annotation.Transactional;
@RequiredArgsConstructor @RequiredArgsConstructor
@Service @Service
public class EnsBatchMakeService extends EgovAbstractServiceImpl implements IEnsBatchMakeService { public class EnsBatchMakeService extends EgovAbstractServiceImpl implements IEnsBatchMakeService {
@Value("${contract.kt.api.dp-callback-url}") @Value("${app.contract.kt.api.dp-callback-url}")
private String DP_CALLBACK_URL; private String DP_CALLBACK_URL;
@Value("${contract.kt.api.me-callback-url}") @Value("${app.contract.kt.api.me-callback-url}")
private String ME_CALLBACK_URL; private String ME_CALLBACK_URL;
private static final String SNDNG_PROCESS_STTUS = "sndngProcessSttus"; private static final String SNDNG_PROCESS_STTUS = "sndngProcessSttus";

@ -65,19 +65,19 @@ import org.springframework.transaction.annotation.Transactional;
@RequiredArgsConstructor @RequiredArgsConstructor
@Service @Service
public class EnsBatchSendService extends EgovAbstractServiceImpl implements IEnsBatchSendService { public class EnsBatchSendService extends EgovAbstractServiceImpl implements IEnsBatchSendService {
@Value("${contract.host}") @Value("${app.contract.host}")
private String apiHost; private String apiHost;
@Value("${contract.kakao.api.bulksend}") @Value("${app.contract.kakao.api.bulksend}")
private String apiKkoBulkSend; private String apiKkoBulkSend;
@Value("${contract.kt.api.bulksend}") @Value("${app.contract.kt.api.bulksend}")
private String apiKtBcBulkSend; private String apiKtBcBulkSend;
@Value("${contract.pplus.api.bulksend}") @Value("${app.contract.pplus.api.bulksend}")
private String apiPplusBulkSend; private String apiPplusBulkSend;
@Value("${contract.kakao.bulk-max-cnt}") @Value("${app.contract.kakao.bulk-max-cnt}")
private int bulkKkoMaxCnt; private int bulkKkoMaxCnt;
@Value("${contract.kt.bulk-max-cnt}") @Value("${app.contract.kt.bulk-max-cnt}")
private int bulkKtMaxCnt; private int bulkKtMaxCnt;
private static final String SNDNG_PROCESS_STTUS = "sndngProcessSttus"; private static final String SNDNG_PROCESS_STTUS = "sndngProcessSttus";

@ -58,16 +58,16 @@ import org.springframework.transaction.annotation.Transactional;
@RequiredArgsConstructor @RequiredArgsConstructor
@Service @Service
public class EnsBatchStatusService extends EgovAbstractServiceImpl implements IEnsBatchStatusService { public class EnsBatchStatusService extends EgovAbstractServiceImpl implements IEnsBatchStatusService {
@Value("${contract.host}") @Value("${app.contract.host}")
private String apiHost; private String apiHost;
@Value("${contract.kakao.api.bulkstatus}") @Value("${app.contract.kakao.api.bulkstatus}")
private String apiKkoBulkStatus; private String apiKkoBulkStatus;
@Value("${contract.pplus.api.bulkstatus}") @Value("${app.contract.pplus.api.bulkstatus}")
private String apiPplusBulkStatus; private String apiPplusBulkStatus;
@Value("${contract.epost.api.trace}") @Value("${app.contract.epost.api.trace}")
private String apiEpostTrace; private String apiEpostTrace;
@Value("${contract.kakao.bulk-max-cnt}") @Value("${app.contract.kakao.bulk-max-cnt}")
private int bulkKkoMaxCnt; private int bulkKkoMaxCnt;
private static final String UNITY_SNDNG_MST_ID = "unitySndngMastrId"; private static final String UNITY_SNDNG_MST_ID = "unitySndngMastrId";

@ -41,11 +41,11 @@ import org.springframework.web.bind.annotation.RestController;
@RestController @RestController
@RequestMapping(value = "/batch/ens/test/v1") @RequestMapping(value = "/batch/ens/test/v1")
public class ApiCallTestController { public class ApiCallTestController {
@Value("${contract.host}") @Value("${app.contract.host}")
private String apiHost; private String apiHost;
@Value("${contract.kakao.api.bulksend}") @Value("${app.contract.kakao.api.bulksend}")
private String apiBulkSend; private String apiBulkSend;
@Value("${contract.kakao.api.bulkstatus}") @Value("${app.contract.kakao.api.bulkstatus}")
private String apiBulkStatus; private String apiBulkStatus;
private final ApiWebClientUtil apiWebClient; private final ApiWebClientUtil apiWebClient;

@ -1,7 +1,8 @@
#----------------------------------------------------------------------- #-----------------------------------------------------------------------
# application 설정 : batch -> api # application 설정 : batch -> api
#----------------------------------------------------------------------- #-----------------------------------------------------------------------
contract: app:
contract:
# milisecond # milisecond
host: http://localhost:8081 host: http://localhost:8081
connection: connection:
@ -30,3 +31,9 @@ contract:
api: api:
trace: /api/ens/epost/v1/trace trace: /api/ens/epost/v1/trace
# 배치 설정
batch:
# 배치 실행 주기
period:
# 전송 주기 : day|hour
send: day

@ -35,10 +35,10 @@ import kr.xit.core.spring.config.support.CustomAsyncExceptionHandler;
@EnableAsync @EnableAsync
public class AsyncExecutorConfig extends AsyncConfigurerSupport { public class AsyncExecutorConfig extends AsyncConfigurerSupport {
@Value("${contract.connection.thread.corePoolSize:5}") @Value("${app.contract.connection.thread.corePoolSize:5}")
private int corePoolSize; private int corePoolSize;
@Value("${contract.connection.thread.maxPoolSize:10}") @Value("${app.contract.connection.thread.maxPoolSize:10}")
private int maxPoolSize; private int maxPoolSize;
/** /**

@ -59,9 +59,9 @@ import reactor.netty.transport.logging.AdvancedByteBufFormat;
@Configuration @Configuration
public class WebClientConfig { public class WebClientConfig {
@Value("${contract.connection.timeout:5000}") @Value("${app.contract.connection.timeout:5000}")
private int connectTimeout; private int connectTimeout;
@Value("${contract.connection.readTimeout:5000}") @Value("${app.contract.connection.readTimeout:5000}")
private int readTimeout; private int readTimeout;
private final ObjectMapper objectMapper; private final ObjectMapper objectMapper;

Loading…
Cancel
Save