fix: code cleansing

property 설정 정리
dev
Jonguk. Lim 1 month ago
parent 55cac28529
commit 0efe06fc7e

@ -129,12 +129,12 @@ public class AccessLogAspect {
accessLog.setResponseFail(String.format("%s: %s", e.getErrCd(), e.getMessage())); accessLog.setResponseFail(String.format("%s: %s", e.getErrCd(), e.getMessage()));
accessLogRepository.save(accessLog); accessLogRepository.save(accessLog);
if (result == null) { if (result == null) {
EnsResponseVO restResponseVO = EnsResponseVO EnsResponseVO<?> restResponseVO = EnsResponseVO
.errBuilder() .errBuilder()
.errCode(e.getErrCd()) .errCode(e.getErrCd())
.errMsg(e.getMessage()) .errMsg(e.getMessage())
.build(); .build();
result = new ResponseEntity<EnsResponseVO>(restResponseVO, HttpStatus.INTERNAL_SERVER_ERROR); result = new ResponseEntity<>(restResponseVO, HttpStatus.INTERNAL_SERVER_ERROR);
} }
} catch (Exception e) { } catch (Exception e) {
@ -142,12 +142,12 @@ public class AccessLogAspect {
accessLog.setResponseFail(String.format("%s: %s", EnsErrCd.UNKNOWN, CmmnUtil.printStackTraceToString(e))); accessLog.setResponseFail(String.format("%s: %s", EnsErrCd.UNKNOWN, CmmnUtil.printStackTraceToString(e)));
accessLogRepository.save(accessLog); accessLogRepository.save(accessLog);
if (result == null) { if (result == null) {
EnsResponseVO restResponseVO = EnsResponseVO EnsResponseVO<?> restResponseVO = EnsResponseVO
.errBuilder() .errBuilder()
.errCode(EnsErrCd.UNKNOWN) .errCode(EnsErrCd.UNKNOWN)
.errMsg("알수없는 오류 입니다. 시스템관리자에게 문의하시기 바랍니다.") .errMsg("알수없는 오류 입니다. 시스템관리자에게 문의하시기 바랍니다.")
.build(); .build();
result = new ResponseEntity<EnsResponseVO>(restResponseVO, HttpStatus.INTERNAL_SERVER_ERROR); result = new ResponseEntity<>(restResponseVO, HttpStatus.INTERNAL_SERVER_ERROR);
applicationEventPublisher.publishEvent(MonitorEvent.builder() applicationEventPublisher.publishEvent(MonitorEvent.builder()
@ -370,7 +370,6 @@ public class AccessLogAspect {
} }
// FIXME: JPA 쿼리 로그 출력 코드 추가 // FIXME: JPA 쿼리 로그 출력 코드 추가
//@ConditionalOnProperty(value = "app.jpa.logging.enabled", havingValue = "true", matchIfMissing = false)
@Around("execution(* org.springframework.data.repository.CrudRepository+.*(..))") @Around("execution(* org.springframework.data.repository.CrudRepository+.*(..))")
public Object logJpaQuery(ProceedingJoinPoint joinPoint) throws Throwable { public Object logJpaQuery(ProceedingJoinPoint joinPoint) throws Throwable {
String methodName = joinPoint.getSignature().getDeclaringType().getSimpleName() + "." + joinPoint.getSignature().getName(); String methodName = joinPoint.getSignature().getDeclaringType().getSimpleName() + "." + joinPoint.getSignature().getName();

@ -3,7 +3,6 @@ package cokr.xit.ens.modules.nice.service;
import java.util.*; import java.util.*;
import org.apache.commons.lang3.*; import org.apache.commons.lang3.*;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.*; import org.springframework.stereotype.*;
import cokr.xit.ens.biz.iup.code.*; import cokr.xit.ens.biz.iup.code.*;
@ -11,7 +10,6 @@ import cokr.xit.ens.core.aop.*;
import cokr.xit.ens.core.exception.code.*; import cokr.xit.ens.core.exception.code.*;
import cokr.xit.ens.modules.nice.mapper.*; import cokr.xit.ens.modules.nice.mapper.*;
import cokr.xit.ens.modules.nice.model.*; import cokr.xit.ens.modules.nice.model.*;
import cokr.xit.ens.modules.nice.service.support.*;
import lombok.*; import lombok.*;
import lombok.extern.slf4j.*; import lombok.extern.slf4j.*;
@ -33,15 +31,6 @@ import lombok.extern.slf4j.*;
@Service @Service
@RequiredArgsConstructor @RequiredArgsConstructor
public class NiceCiCloseService { public class NiceCiCloseService {
@Value("${contract.niceCi.orgId}")
private String ORG_ID;
@Value("${contract.niceCi.isStatusFail}")
private boolean IS_STATUS_FAIL;
private final NiceCiApiService niceCiApiService;
private final NiceCiNewTransactionService niceCiNewTransactionService;
private final INiceCiMapper niceCiMapper; private final INiceCiMapper niceCiMapper;
/** /**

@ -38,9 +38,6 @@ public class NiceCiStatBulkService {
@Value("${contract.niceCi.orgId}") @Value("${contract.niceCi.orgId}")
private String ORG_ID; private String ORG_ID;
@Value("${contract.niceCi.isStatusFail}")
private boolean IS_STATUS_FAIL;
private final NiceCiApiService niceCiApiService; private final NiceCiApiService niceCiApiService;
private final NiceCiNewTransactionService niceCiNewTransactionService; private final NiceCiNewTransactionService niceCiNewTransactionService;

@ -73,6 +73,7 @@ xit:
payinf: payinf:
host: ${xit.app.url}${xit.app.ctx} host: ${xit.app.url}${xit.app.ctx}
# // FIXME: JPA 쿼리 로그 출력 - AccessLogAspect::logJpaQuery
app: app:
jpa: jpa:
logging: logging:

@ -137,8 +137,6 @@ contract:
host: ${xit.middle.url} host: ${xit.middle.url}
prepay: /bill/nv/ep/apply prepay: /bill/nv/ep/apply
biz: biz:
iup: iup:
api: api:

@ -14,22 +14,15 @@ server:
spring: spring:
profiles: profiles:
# active: local
active: '@spring.profiles.active@' active: '@spring.profiles.active@'
# include:
# prodDB
# group:
# local:
# - localDB
# prod:
# - prodDB
config: config:
import: classpath:config/conf-app.yml, classpath:config/conf-contract.yml, classpath:config/conf-log.yml, classpath:config/conf-mybatis.yml, classpath:config/conf-policy.yml, classpath:config/conf-slack.yml import: classpath:config/conf-app.yml, classpath:config/conf-contract.yml, classpath:config/conf-log.yml, classpath:config/conf-mybatis.yml, classpath:config/conf-policy.yml, classpath:config/conf-slack.yml
# main: # main:
# allow-bean-definition-overriding: true # allow-bean-definition-overriding: true
pid: pid:
file: mdpost.pid file: mens-iup.pid
mvc: mvc:
view: view:
@ -92,29 +85,6 @@ spring:
repositories: repositories:
enabled: false enabled: false
# kafka:
# producer:
# bootstrap-servers: localhost:49092
# key-serializer: org.apache.kafka.common.serialization.StringSerializer
# value-serializer: org.apache.kafka.common.serialization.StringSerializer
# consumer:
# bootstrap-servers: localhost:49092
# key-deserializer: org.apache.kafka.common.serialization.StringDeserializer
# value-deserializer: org.apache.kafka.common.serialization.StringDeserializer
# group-id: group-id-ens
# auto-offset-reset: latest
# max-poll-records: 1
xit: xit:
app: app:
url: ${server.protocol:http}://${server.host:localhost}:${server.port} url: ${server.protocol:http}://${server.host:localhost}:${server.port}
@ -168,12 +138,3 @@ springdoc:
display-query-params-without-oauth2: true display-query-params-without-oauth2: true
csrf: csrf:
enabled: false enabled: false
# group-configs[0]:
# group: Examples...
# paths-to-match: /example/**, /kafka/sample/**
# group-configs[1]:
# group: 카카오페이-내문서함
# paths-to-match: /kko/mydoc/**
# group-configs[2]:
# group: 카카오페이-청구서
# paths-to-match: /kakao/**

@ -9,3 +9,9 @@ app:
cnt: 5 cnt: 5
bill: bill:
cnt: 2 cnt: 2
# // FIXME: JPA 쿼리 로그 출력 - AccessLogAspect::logJpaQuery
jpa:
logging:
param: false
result: false

@ -138,12 +138,10 @@ contract:
host: 127.0.0.1 host: 127.0.0.1
#host: 10.1.1.5 #host: 10.1.1.5
port: 10002 port: 10002
# ms # //FIXME: NICE CI Socket 통신 timeout 시간 설정 - 단위 ms
timeout: 3000 timeout: 3000
orgId: Z755400 orgId: Z755400
# 개발 # 개발
clientId: 0027370001 #clientId: 0027370001
# 운영 # 운영
#clientId: 0027370002 #clientId: 0027370002
# 상태조회중 에러 발생시 FAIL 처리 여부
isStatusFail: false

Loading…
Cancel
Save