예외 스택트레이스 로깅 방식 개선 및 Setter null-safe 관련 주석 추가

dev
박성영 2 months ago
parent cebbcb5f6c
commit 56827b75c5

@ -85,7 +85,8 @@ public class SqlLoggingInterceptor implements Interceptor {
logger.error("Parameters: {}", parameter);
logger.error("SQL: {}", ms.getBoundSql(parameter).getSql());
logger.error("Error: {}", e.getMessage());
logger.error("Error StackTrace: {}", (Object[]) e.getStackTrace());
// 중요로직: 예외 전체 스택트레이스를 가독성 있게 출력하기 위해 logger.error("message", exception) 형태를 사용
logger.error("Error StackTrace: ", e);
throw e;
}
// 주의: ThreadLocal 정리는 DataSourceProxy의 afterQuery에서 수행

@ -78,6 +78,8 @@ public class LevyPrvntcActInfoVO extends PagingVO {
/**
* actCmpttnRt , 100 actCmpttnRtRate .
* - : Service/Controller null .
* ( Setter null-safe , null actCmpttnRtRate null )
* @param actCmpttnRt (: 50)
*/
public void setActCmpttnRt(BigDecimal actCmpttnRt) {

Loading…
Cancel
Save