Skip to content

Commit

Permalink
hotfix: updated aspect range
Browse files Browse the repository at this point in the history
  • Loading branch information
thguss committed Sep 10, 2024
1 parent 8c17314 commit a5fe00f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
public class DuplicateRequestAspect {
private final Set<String> requestSet = Collections.synchronizedSet(new HashSet<>());

@Around("execution(public * com.smeem.http..*(..))")
@Around("@within(org.springframework.web.bind.annotation.RestController)")
public Object duplicateRequestCheck(ProceedingJoinPoint joinPoint) throws Throwable {
val request = ((ServletRequestAttributes) RequestContextHolder.currentRequestAttributes()).getRequest();
val httpMethod = request.getMethod();
Expand Down

0 comments on commit a5fe00f

Please sign in to comment.