Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
broken-petclinic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
s61200
broken-petclinic
Commits
77bd960b
Commit
77bd960b
authored
9 years ago
by
michaelisvy
Browse files
Options
Downloads
Plain Diff
Merge pull request #98 from freemansoft/master
Add comments to describe when AOP invoked
parents
4bb829cb
5a6c108e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/org/springframework/samples/petclinic/util/CallMonitoringAspect.java
+2
-0
2 additions, 0 deletions
...ramework/samples/petclinic/util/CallMonitoringAspect.java
src/main/webapp/WEB-INF/web.xml
+2
-0
2 additions, 0 deletions
src/main/webapp/WEB-INF/web.xml
with
4 additions
and
0 deletions
src/main/java/org/springframework/samples/petclinic/util/CallMonitoringAspect.java
+
2
−
0
View file @
77bd960b
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
src/main/webapp/WEB-INF/web.xml
+
2
−
0
View file @
77bd960b
...
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment