I want to monitor all public methods of all Classes with specified annotation (say @Monitor) (note: Annotation is at class level). What could be a possible pointcut for this? Note: I am using @AspectJ style Spring AOP.
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
Using annotations, as described in the question.
Annotation:
@Monitor
Annotation on class,
app/PagesController.java
:Annotation on method,
app/PagesController.java
:Custom annotation,
app/Monitor.java
:Aspect for annotation,
app/MonitorAspect.java
:Enable AspectJ,
servlet-context.xml
:Include AspectJ libraries,
pom.xml
:Use
From Spring's
AnnotationTransactionAspect
: