I have an aspect that works correctly in my unit tests, the log message is printed from the actual method, and then from the applied aspect.
When starting my webapp, although, I only see the result of applying "@afterReturning", my method is not executed first.
My configuration:
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd"> <aop:aspectj-autoproxy proxy-target-class="true" /> <bean id="loggingAspect" class="com.mypackage.MyAspect" /> </beans>
Any ideas?
Thank you for your help.
The information you provided is not sufficient for analysis. So check what happens in your web application,
1) , , , spring bean, , spring. - spring, aop.
2) , aop tips xml spring. spring -mvc, xml. xml aop.
3) , pointcut .
, .
Source: https://habr.com/ru/post/1756888/More articles:About AlphaBeta - c #Can we execute a batch file (* .bat) using the Application Domain? - c #How to access a namespace that is part of another project? - namespaceslistener failed to start a dedicated server process - javahttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1756887/remote-desktop-connection&usg=ALkJrhixgwIkCwN5df3HqFLgLlZ2DKHqogThe variable is not set by choice - sqlPreseve line breaks from textarea in a Rails controller sent with submit_to_remote - splitOFX File Analyzer in C # - c #Phonegap: You can only use phonegap.js and it only works on the website (doesn't want the application to be just a web page)? - functionASP.NET problem with jQuery ajax function - jqueryAll Articles