Commit 0d299d9a988e8199de3332280a525abfc1efb017
1 parent
89ec913c
解决性能监控(请求追踪、tomcat信息)菜单,打开报错的问题
Showing
2 changed files
with
15 additions
and
5 deletions
ant-design-vue-jeecg/src/views/modules/monitor/TomcatInfo.vue
... | ... | @@ -110,14 +110,15 @@ |
110 | 110 | getAction('actuator/metrics/tomcat.sessions.active.current'), |
111 | 111 | getAction('actuator/metrics/tomcat.sessions.active.max'), |
112 | 112 | getAction('actuator/metrics/tomcat.sessions.rejected'), |
113 | - getAction('actuator/metrics/tomcat.global.sent'), | |
114 | - getAction('actuator/metrics/tomcat.global.request.max'), | |
115 | - getAction('actuator/metrics/tomcat.global.request'), | |
113 | + // 2.3.5.RELEASE 无此API | |
114 | + // getAction('actuator/metrics/tomcat.global.sent'), | |
115 | + // getAction('actuator/metrics/tomcat.global.request.max'), | |
116 | + // getAction('actuator/metrics/tomcat.global.request'), | |
117 | + // getAction('actuator/metrics/tomcat.threads.current'), | |
118 | + // getAction('actuator/metrics/tomcat.threads.config.max') | |
116 | 119 | // 2.1.3.RELEASE 无此API |
117 | 120 | //getAction('actuator/metrics/tomcat.servlet.request'), |
118 | 121 | // getAction('actuator/metrics/tomcat.servlet.request.max'), |
119 | - getAction('actuator/metrics/tomcat.threads.current'), | |
120 | - getAction('actuator/metrics/tomcat.threads.config.max') | |
121 | 122 | ]).then((res) => { |
122 | 123 | let tomcatInfo = [] |
123 | 124 | res.forEach((value, id) => { |
... | ... |
jeecg-boot/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/config/WebMvcConfiguration.java
1 | 1 | package org.jeecg.config; |
2 | 2 | |
3 | 3 | import org.springframework.beans.factory.annotation.Value; |
4 | +import org.springframework.boot.actuate.trace.http.InMemoryHttpTraceRepository; | |
4 | 5 | import org.springframework.context.annotation.Bean; |
5 | 6 | import org.springframework.context.annotation.Conditional; |
6 | 7 | import org.springframework.context.annotation.Configuration; |
... | ... | @@ -63,4 +64,12 @@ public class WebMvcConfiguration implements WebMvcConfigurer { |
63 | 64 | return new CorsFilter(urlBasedCorsConfigurationSource); |
64 | 65 | } |
65 | 66 | |
67 | + /** | |
68 | + * SpringBootAdmin的Httptrace不见了 | |
69 | + * https://blog.csdn.net/u013810234/article/details/110097201 | |
70 | + */ | |
71 | + @Bean | |
72 | + public InMemoryHttpTraceRepository getInMemoryHttpTrace(){ | |
73 | + return new InMemoryHttpTraceRepository(); | |
74 | + } | |
66 | 75 | } |
... | ... |