Skip to content

Commit

Permalink
Merge pull request #146 from SPACE-FOR-SPACE/fix/#143
Browse files Browse the repository at this point in the history
Aop 에러 해결
  • Loading branch information
GSB0203 authored Nov 21, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents 15b1f67 + 8b189ee commit 22f8fca
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/main/java/com/space/server/common/aop/TimerAop.java
Original file line number Diff line number Diff line change
@@ -3,7 +3,6 @@
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

import java.util.logging.Logger;
@@ -14,19 +13,7 @@ public class TimerAop {

private final Logger logger = Logger.getLogger(getClass().getName());

@Pointcut("execution(* com.space.server.core..service..*(..))")
public void serviceLayer() {}

@Pointcut("execution(* com.space.server.chat.service..*(..))")
public void chatLayer() {}

@Pointcut("execution(* com.space.server.state.service..*(..))")
public void stateLayer() {}

@Pointcut("execution(* com.space.server.ai..*(..))")
public void aiLayer() {}

@Around("serviceLayer() || chatLayer() || stateLayer() || aiLayer()")
@Around("execution(* com.space.server..service..*(..))")
public Object measureMethodExecutionTime(ProceedingJoinPoint joinPoint) throws Throwable {
long start = System.nanoTime();
Object proceed = joinPoint.proceed();

0 comments on commit 22f8fca

Please sign in to comment.