je la configuration suivante:Spring - Aspect ne s'applique à l'exécution
@Aspect
public class MyAspect {
@Around(@annotation(SomeAnnotation))
public Object myMethod(ProceedingJoinPoint joinPoint) throws Throwable {
System.out.println("Hello...");
}
}
et ont les définitions des haricots suivants:
<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-2.5.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
<bean id="myAspect" class="MyAspect" />
</beans>
Je vois que le comportement ne s'applique à @SomeAnnotation
méthode annotée à l'exécution. Une idée pourquoi?
Thx.
+1 pour le débogage - bon contrôle de santé mentale. – ChssPly76