Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
property-management
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
property-management
Commits
ff45fe48
Commit
ff45fe48
authored
Dec 03, 2020
by
zhangdaiscott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决性能监控(请求追踪、tomcat信息)菜单,打开报错的问题
parent
c13ed675
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
ant-design-vue-jeecg/src/views/modules/monitor/TomcatInfo.vue
+6
-5
jeecg-boot/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/config/WebMvcConfiguration.java
+9
-0
No files found.
ant-design-vue-jeecg/src/views/modules/monitor/TomcatInfo.vue
View file @
ff45fe48
...
...
@@ -110,14 +110,15 @@
getAction
(
'actuator/metrics/tomcat.sessions.active.current'
),
getAction
(
'actuator/metrics/tomcat.sessions.active.max'
),
getAction
(
'actuator/metrics/tomcat.sessions.rejected'
),
getAction
(
'actuator/metrics/tomcat.global.sent'
),
getAction
(
'actuator/metrics/tomcat.global.request.max'
),
getAction
(
'actuator/metrics/tomcat.global.request'
),
// 2.3.5.RELEASE 无此API
// getAction('actuator/metrics/tomcat.global.sent'),
// getAction('actuator/metrics/tomcat.global.request.max'),
// getAction('actuator/metrics/tomcat.global.request'),
// getAction('actuator/metrics/tomcat.threads.current'),
// getAction('actuator/metrics/tomcat.threads.config.max')
// 2.1.3.RELEASE 无此API
//getAction('actuator/metrics/tomcat.servlet.request'),
// getAction('actuator/metrics/tomcat.servlet.request.max'),
getAction
(
'actuator/metrics/tomcat.threads.current'
),
getAction
(
'actuator/metrics/tomcat.threads.config.max'
)
]).
then
((
res
)
=>
{
let
tomcatInfo
=
[]
res
.
forEach
((
value
,
id
)
=>
{
...
...
jeecg-boot/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/config/WebMvcConfiguration.java
View file @
ff45fe48
package
org
.
jeecg
.
config
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.boot.actuate.trace.http.InMemoryHttpTraceRepository
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Conditional
;
import
org.springframework.context.annotation.Configuration
;
...
...
@@ -63,4 +64,12 @@ public class WebMvcConfiguration implements WebMvcConfigurer {
return
new
CorsFilter
(
urlBasedCorsConfigurationSource
);
}
/**
* SpringBootAdmin的Httptrace不见了
* https://blog.csdn.net/u013810234/article/details/110097201
*/
@Bean
public
InMemoryHttpTraceRepository
getInMemoryHttpTrace
(){
return
new
InMemoryHttpTraceRepository
();
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment