|
|
@ -10,7 +10,6 @@ import javax.servlet.http.*;
|
|
|
|
import org.aspectj.lang.*;
|
|
|
|
import org.aspectj.lang.*;
|
|
|
|
import org.aspectj.lang.annotation.*;
|
|
|
|
import org.aspectj.lang.annotation.*;
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
import org.springframework.boot.autoconfigure.condition.*;
|
|
|
|
|
|
|
|
import org.springframework.context.*;
|
|
|
|
import org.springframework.context.*;
|
|
|
|
import org.springframework.http.*;
|
|
|
|
import org.springframework.http.*;
|
|
|
|
import org.springframework.stereotype.*;
|
|
|
|
import org.springframework.stereotype.*;
|
|
|
@ -371,7 +370,7 @@ public class AccessLogAspect {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// FIXME: JPA 쿼리 로그 출력 코드 추가
|
|
|
|
// FIXME: JPA 쿼리 로그 출력 코드 추가
|
|
|
|
@ConditionalOnProperty(value = "app.jpa.logging.enabled", havingValue = "true", matchIfMissing = false)
|
|
|
|
//@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();
|
|
|
|