필요없는 콘피그 삭제

dev
박성영 5 months ago
parent 5a710113eb
commit 7ee43f0cbb

@ -1,21 +0,0 @@
package egovframework.exception;
import lombok.Setter;
import org.aspectj.lang.JoinPoint;
import org.egovframe.rte.fdl.cmmn.aspect.ExceptionTransfer;
@Setter
//@Aspect
public class EgovAopExceptionTransfer {
private ExceptionTransfer exceptionTransfer;
//@Pointcut("execution(* go.kr.project..impl.*Impl.*(..)) or execution(* egovframework.com..*Impl.*(..))")
private void exceptionTransferService() {}
//@AfterThrowing(pointcut="exceptionTransferService()", throwing="ex")
public void doAfterThrowingExceptionTransferService(JoinPoint thisJoinPoint, Exception ex) throws Exception {
exceptionTransfer.transfer(thisJoinPoint, ex);
}
}

@ -1,14 +0,0 @@
package egovframework.exception;
import lombok.extern.slf4j.Slf4j;
import org.egovframe.rte.fdl.cmmn.exception.handler.ExceptionHandler;
@Slf4j
public class EgovDefaultExcepHndlr implements ExceptionHandler {
@Override
public void occur(Exception ex, String packageName) {
log.debug("##### EgovServiceExceptionHandler Run...");
}
}

@ -1,14 +0,0 @@
package egovframework.exception;
import lombok.extern.slf4j.Slf4j;
import org.egovframe.rte.fdl.cmmn.exception.handler.ExceptionHandler;
@Slf4j
public class EgovDefaultOthersExcepHndlr implements ExceptionHandler {
@Override
public void occur(Exception exception, String packageName) {
log.debug("##### EgovSampleOthersExcepHndlr Run...");
}
}

@ -112,7 +112,8 @@ public class EgovExceptionAdvice {
*/
@ExceptionHandler(MessageException.class)
public Object handleMessageException(MessageException e, HttpServletRequest request) {
log.error("MessageException 발생: ", e);
// MessageException은 스택 트레이스 없이 메시지만 출력
log.warn("MessageException 발생: {}", e.getMessage());
return getModelAndView(e, request, HttpStatus.INTERNAL_SERVER_ERROR);
}

Loading…
Cancel
Save