diff --git a/.springBeans b/.springBeans index a22a616..2f9dc4c 100644 --- a/.springBeans +++ b/.springBeans @@ -11,7 +11,6 @@ src/main/webapp/WEB-INF/mvc-view-config.xml src/main/resources/spring/dao-config.xml src/main/resources/spring/datasource-config.xml - src/main/resources/spring/service-config.xml @@ -24,7 +23,6 @@ src/main/resources/spring/dao-config.xml src/main/resources/spring/datasource-config.xml src/main/resources/spring/jmx-aop-config.xml - src/main/resources/spring/service-config.xml diff --git a/src/main/java/org/springframework/samples/petclinic/aspects/CallMonitoringAspect.java b/src/main/java/org/springframework/samples/petclinic/aspects/CallMonitoringAspect.java index 234a25b..9e2b68e 100644 --- a/src/main/java/org/springframework/samples/petclinic/aspects/CallMonitoringAspect.java +++ b/src/main/java/org/springframework/samples/petclinic/aspects/CallMonitoringAspect.java @@ -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()); diff --git a/src/main/resources/spring/service-config.xml b/src/main/resources/spring/service-config.xml deleted file mode 100644 index 99ef66d..0000000 --- a/src/main/resources/spring/service-config.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/mvc-core-config.xml b/src/main/webapp/WEB-INF/mvc-core-config.xml index 3b1a242..6ce11a4 100644 --- a/src/main/webapp/WEB-INF/mvc-core-config.xml +++ b/src/main/webapp/WEB-INF/mvc-core-config.xml @@ -15,7 +15,7 @@ - + diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml index 0dfdc6b..aa7171e 100644 --- a/src/main/webapp/WEB-INF/web.xml +++ b/src/main/webapp/WEB-INF/web.xml @@ -23,7 +23,7 @@ id="WebApp_ID" version="2.5"> --> contextConfigLocation - classpath:spring/dao-config.xml, classpath:spring/service-config.xml, classpath:spring/jmx-aop-config.xml + classpath:spring/dao-config.xml, classpath:spring/jmx-aop-config.xml