mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 20:25:50 +00:00
Merge pull request #98 from freemansoft/master
Add comments to describe when AOP invoked
This commit is contained in:
commit
77bd960b69
2 changed files with 4 additions and 0 deletions
|
@ -26,6 +26,8 @@ import org.springframework.util.StopWatch;
|
||||||
/**
|
/**
|
||||||
* Simple aspect that monitors call count and call invocation time. It uses JMX annotations and therefore can be
|
* Simple aspect that monitors call count and call invocation time. It uses JMX annotations and therefore can be
|
||||||
* monitored using any JMX console such as the jConsole
|
* monitored using any JMX console such as the jConsole
|
||||||
|
*
|
||||||
|
* This is only useful if you use JPA or JDBC. Spring-data-jpa doesn't have any correctly annotated classes to join on
|
||||||
*
|
*
|
||||||
* @author Rob Harrop
|
* @author Rob Harrop
|
||||||
* @author Juergen Hoeller
|
* @author Juergen Hoeller
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
<display-name>Spring PetClinic</display-name>
|
<display-name>Spring PetClinic</display-name>
|
||||||
<description>Spring PetClinic sample application</description>
|
<description>Spring PetClinic sample application</description>
|
||||||
|
|
||||||
|
<!-- When using Spring jpa, use the following: -->
|
||||||
<context-param>
|
<context-param>
|
||||||
<param-name>spring.profiles.active</param-name>
|
<param-name>spring.profiles.active</param-name>
|
||||||
<param-value>jpa</param-value>
|
<param-value>jpa</param-value>
|
||||||
|
@ -19,6 +20,7 @@
|
||||||
<param-value>jdbc</param-value>
|
<param-value>jdbc</param-value>
|
||||||
</context-param> -->
|
</context-param> -->
|
||||||
|
|
||||||
|
<!-- the CallMonitoringAspect counts invocations on classes with @Repository on them. Classes in spring-data-jpa don't have that annotation -->
|
||||||
<!-- When using Spring Data JPA, uncomment the following: -->
|
<!-- When using Spring Data JPA, uncomment the following: -->
|
||||||
<!--
|
<!--
|
||||||
<context-param>
|
<context-param>
|
||||||
|
|
Loading…
Reference in a new issue