summaryrefslogtreecommitdiffstats
path: root/reference/logging-demo/src/main/webapp/WEB-INF
diff options
context:
space:
mode:
Diffstat (limited to 'reference/logging-demo/src/main/webapp/WEB-INF')
-rw-r--r--reference/logging-demo/src/main/webapp/WEB-INF/spring.xml5
1 files changed, 5 insertions, 0 deletions
diff --git a/reference/logging-demo/src/main/webapp/WEB-INF/spring.xml b/reference/logging-demo/src/main/webapp/WEB-INF/spring.xml
index 32d1235..2b4d585 100644
--- a/reference/logging-demo/src/main/webapp/WEB-INF/spring.xml
+++ b/reference/logging-demo/src/main/webapp/WEB-INF/spring.xml
@@ -34,6 +34,11 @@
</context:component-scan>
<!-- Rest controllers -->
<context:component-scan base-package="org.onap.demo.logging" />
+ <!-- enable logging AOP proxies -->
+ <aop:aspectj-autoproxy />
+ <beans>
+ <bean class="org.onap.demo.logging.LoggingAspect" /> <!-- required even though we annotate with @Aspect -->
+ </beans>
</beans>