mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2026-01-13 13:21:11 +00:00
moved pointcut to @Repository instead of @Service
In that way we don't need a dedicated config file for the Service layer
This commit is contained in:
parent
5699bf83ee
commit
572ef6e2c4
5 changed files with 3 additions and 18 deletions
|
|
@ -55,7 +55,7 @@ public class CallMonitoringAspect {
|
|||
}
|
||||
|
||||
|
||||
@Around("within(@org.springframework.stereotype.Service *)")
|
||||
@Around("within(@org.springframework.stereotype.Repository *)")
|
||||
public Object invoke(ProceedingJoinPoint joinPoint) throws Throwable {
|
||||
if (this.isEnabled) {
|
||||
StopWatch sw = new StopWatch(joinPoint.toShortString());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue