diff --git a/pom.xml b/pom.xml index 989ba3cbc09a42dae273c5b5538c04c141a00df5..3f2e357ca12a1f8f96f2b3faac038c0366f7bdaf 100644 --- a/pom.xml +++ b/pom.xml @@ -88,10 +88,6 @@ <artifactId>taglibs-standard-jstlel</artifactId> </dependency> <!-- JSon --> - <dependency> - <groupId>com.googlecode.json-simple</groupId> - <artifactId>json-simple</artifactId> - </dependency> <dependency> <groupId>com.jayway.jsonpath</groupId> <artifactId>json-path</artifactId> diff --git a/src/main/java/org/springframework/samples/petclinic/util/CallMonitoringAspect.java b/src/main/java/org/springframework/samples/petclinic/util/CallMonitoringAspect.java index 3c699842f97c6700f41e597b6fc37d40e9682d73..494d6503ebaa1ecade4b2303aaf429f001fd4838 100644 --- a/src/main/java/org/springframework/samples/petclinic/util/CallMonitoringAspect.java +++ b/src/main/java/org/springframework/samples/petclinic/util/CallMonitoringAspect.java @@ -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 * 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 Juergen Hoeller diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml index bd3ea6d4ad59c06d83729283c9a5e8b897cb22eb..e0c93f4f6b4d7adc06d0b9ff75fe6ad867456527 100644 --- a/src/main/webapp/WEB-INF/web.xml +++ b/src/main/webapp/WEB-INF/web.xml @@ -8,6 +8,7 @@ <display-name>Spring PetClinic</display-name> <description>Spring PetClinic sample application</description> + <!-- When using Spring jpa, use the following: --> <context-param> <param-name>spring.profiles.active</param-name> <param-value>jpa</param-value> @@ -19,6 +20,7 @@ <param-value>jdbc</param-value> </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: --> <!-- <context-param>