diff --git a/mens-api/src/main/java/kr/xit/core/spring/config/support/RestResponseErrorHandler.java b/mens-api/src/main/java/kr/xit/core/spring/config/support/RestResponseErrorHandler.java deleted file mode 100644 index 4f339a6..0000000 --- a/mens-api/src/main/java/kr/xit/core/spring/config/support/RestResponseErrorHandler.java +++ /dev/null @@ -1,53 +0,0 @@ -package kr.xit.core.spring.config.support; - -import kr.xit.core.exception.BizRuntimeException; -import lombok.extern.slf4j.Slf4j; -import org.springframework.http.HttpStatus; -import org.springframework.http.client.ClientHttpResponse; -import org.springframework.web.client.DefaultResponseErrorHandler; - -import java.io.IOException; - -/** - *
- * description : RestTemplate Error Handler
- * packageName : kr.xit.core.spring.config.support
- * fileName    : RestResponseErrorHandler
- * author      : julim
- * date        : 2023-04-28
- * ======================================================================
- * 변경일         변경자        변경 내용
- * ----------------------------------------------------------------------
- * 2023-04-28    julim       최초 생성
- *
- * 
- * @see kr.xit.core.spring.config.RestTemplateConfig#restTemplate - */ -@Slf4j -public class RestResponseErrorHandler extends DefaultResponseErrorHandler { - - @Override - public void handleError(ClientHttpResponse response) throws IOException { - String seriesName = "UNKNOWN_ERROR"; - - if (response.getStatusCode() == HttpStatus.PRECONDITION_FAILED) { - seriesName = String.valueOf(HttpStatus.PRECONDITION_FAILED.value()); - - }else if (response.getStatusCode().series() == HttpStatus.Series.SERVER_ERROR) { - // handle SERVER_ERROR - seriesName = HttpStatus.Series.SERVER_ERROR.name(); - - } else if (response.getStatusCode().series() == HttpStatus.Series.CLIENT_ERROR) { - // handle CLIENT_ERROR - seriesName = HttpStatus.Series.CLIENT_ERROR.name(); - if (response.getStatusCode() == HttpStatus.NOT_FOUND) { - seriesName = String.valueOf(HttpStatus.NOT_FOUND.value()); - } - } - log.error("========================== RestResponse Error =============================="); - log.error("SERIES NAME : {}", seriesName); - log.error("STATUS CODE : {}", response.getStatusCode()); - log.error("============================================================================="); - //throw BizRuntimeException.create(String.valueOf(response.getStatusCode().value()), null); - } -} diff --git a/mens-batch/src/main/java/kr/xit/biz/ens/service/EnsBatchStatusService.java b/mens-batch/src/main/java/kr/xit/biz/ens/service/EnsBatchStatusService.java index be74d34..22d3e0d 100644 --- a/mens-batch/src/main/java/kr/xit/biz/ens/service/EnsBatchStatusService.java +++ b/mens-batch/src/main/java/kr/xit/biz/ens/service/EnsBatchStatusService.java @@ -150,6 +150,7 @@ public class EnsBatchStatusService extends AbstractService implements IEnsBatchS final List docsBinderUuids = mapper.selectKakaoStatusTgts(dto); final List> partitions = ListUtils.partition(docsBinderUuids, bulkKkoMaxCnt); + @SuppressWarnings("rawtypes") final List apiResults = partitions.stream() .map(uuids -> apiWebClient.exchange( url, diff --git a/mens-batch/src/main/java/kr/xit/biz/ens/web/EnsBatchController.java b/mens-batch/src/main/java/kr/xit/biz/ens/web/EnsBatchController.java index 30efba5..019d811 100644 --- a/mens-batch/src/main/java/kr/xit/biz/ens/web/EnsBatchController.java +++ b/mens-batch/src/main/java/kr/xit/biz/ens/web/EnsBatchController.java @@ -92,8 +92,8 @@ public class EnsBatchController { ) }) }) - @PostMapping(value = "/findStatusBulks", produces = MediaType.APPLICATION_JSON_VALUE) - public IApiResponse findStatusBulks(@RequestBody final EnsDTO.BatchEnsRequest reqDTO){ + @PostMapping(value = "/statusBulks", produces = MediaType.APPLICATION_JSON_VALUE) + public IApiResponse statusBulks(@RequestBody final EnsDTO.BatchEnsRequest reqDTO){ statusService.statusBulks(reqDTO); return ApiResponseDTO.success(); } diff --git a/mens-core/src/main/java/egovframework/com/cmm/config/package-info.java b/mens-core/src/main/java/egovframework/com/cmm/config/package-info.java deleted file mode 100644 index a6d50b6..0000000 --- a/mens-core/src/main/java/egovframework/com/cmm/config/package-info.java +++ /dev/null @@ -1,10 +0,0 @@ -/** - * egov framework config package classes - *

- * - *

- * @since 1.0 - * @author limju - * @version 1.0 - */ -package egovframework.com.cmm.config; diff --git a/mens-core/src/main/java/egovframework/com/cmm/interceptor/package-info.java b/mens-core/src/main/java/egovframework/com/cmm/interceptor/package-info.java deleted file mode 100644 index c7716dd..0000000 --- a/mens-core/src/main/java/egovframework/com/cmm/interceptor/package-info.java +++ /dev/null @@ -1,10 +0,0 @@ -/** - * egov framework interceptor package classes - *

- * - *

- * @since 1.0 - * @author limju - * @version 1.0 - */ -package egovframework.com.cmm.interceptor; diff --git a/mens-core/src/main/java/egovframework/com/cmm/jwt/config/package-info.java b/mens-core/src/main/java/egovframework/com/cmm/jwt/config/package-info.java deleted file mode 100644 index 54974ff..0000000 --- a/mens-core/src/main/java/egovframework/com/cmm/jwt/config/package-info.java +++ /dev/null @@ -1,10 +0,0 @@ -/** - * egov framework java web token package classes - *

- * - *

- * @since 1.0 - * @author limju - * @version 1.0 - */ -package egovframework.com.cmm.jwt.config; diff --git a/mens-core/src/main/java/egovframework/com/cmm/model/package-info.java b/mens-core/src/main/java/egovframework/com/cmm/model/package-info.java deleted file mode 100644 index 46c503e..0000000 --- a/mens-core/src/main/java/egovframework/com/cmm/model/package-info.java +++ /dev/null @@ -1,10 +0,0 @@ -/** - * egov framework model package classes - *

- * - *

- * @since 1.0 - * @author limju - * @version 1.0 - */ -package egovframework.com.cmm.model; diff --git a/mens-core/src/main/java/egovframework/com/cmm/package-info.java b/mens-core/src/main/java/egovframework/com/cmm/package-info.java deleted file mode 100644 index 8aa54eb..0000000 --- a/mens-core/src/main/java/egovframework/com/cmm/package-info.java +++ /dev/null @@ -1,10 +0,0 @@ -/** - * egov framework package classes - *

- * - *

- * @since 1.0 - * @author limju - * @version 1.0 - */ -package egovframework.com.cmm; diff --git a/mens-core/src/main/java/egovframework/com/cmm/util/package-info.java b/mens-core/src/main/java/egovframework/com/cmm/util/package-info.java deleted file mode 100644 index a970140..0000000 --- a/mens-core/src/main/java/egovframework/com/cmm/util/package-info.java +++ /dev/null @@ -1,10 +0,0 @@ -/** - * egov framework util package classes - *

- * - *

- * @since 1.0 - * @author limju - * @version 1.0 - */ -package egovframework.com.cmm.util; diff --git a/mens-core/src/main/java/egovframework/com/cmm/web/package-info.java b/mens-core/src/main/java/egovframework/com/cmm/web/package-info.java deleted file mode 100644 index 4dc7ada..0000000 --- a/mens-core/src/main/java/egovframework/com/cmm/web/package-info.java +++ /dev/null @@ -1,10 +0,0 @@ -/** - * egov framework web package classes - *

- * - *

- * @since 1.0 - * @author limju - * @version 1.0 - */ -package egovframework.com.cmm.web;