Inspectopedia Help

Incorrect Spring AOP pointcut expression

Reports AspectJ pointcut designators which are not supported by Spring.

Example:

<beans> <aop:config > <aop:pointcut expression="@this(Anno) <!-- '@this' pointcut designator isn't supported by Spring --> and adviceexecution()"/> <!-- 'adviceexecution' pointcut designator isn't supported by Spring --> <aop:pointcut expression="!@annotation(Anno)"/> </aop:config> </beans>

Inspection Details

By default bundled with:

IntelliJ IDEA 2024.1, Qodana for JVM 2024.1,

Can be installed with plugin:

Spring, 241.16690

Last modified: 29 April 2024