提交 ff45fe48 编写于 作者: JEECG低代码平台's avatar JEECG低代码平台

解决性能监控(请求追踪、tomcat信息)菜单,打开报错的问题

上级 c13ed675
...@@ -110,14 +110,15 @@ ...@@ -110,14 +110,15 @@
getAction('actuator/metrics/tomcat.sessions.active.current'), getAction('actuator/metrics/tomcat.sessions.active.current'),
getAction('actuator/metrics/tomcat.sessions.active.max'), getAction('actuator/metrics/tomcat.sessions.active.max'),
getAction('actuator/metrics/tomcat.sessions.rejected'), getAction('actuator/metrics/tomcat.sessions.rejected'),
getAction('actuator/metrics/tomcat.global.sent'), // 2.3.5.RELEASE 无此API
getAction('actuator/metrics/tomcat.global.request.max'), // getAction('actuator/metrics/tomcat.global.sent'),
getAction('actuator/metrics/tomcat.global.request'), // 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 // 2.1.3.RELEASE 无此API
//getAction('actuator/metrics/tomcat.servlet.request'), //getAction('actuator/metrics/tomcat.servlet.request'),
// getAction('actuator/metrics/tomcat.servlet.request.max'), // getAction('actuator/metrics/tomcat.servlet.request.max'),
getAction('actuator/metrics/tomcat.threads.current'),
getAction('actuator/metrics/tomcat.threads.config.max')
]).then((res) => { ]).then((res) => {
let tomcatInfo = [] let tomcatInfo = []
res.forEach((value, id) => { res.forEach((value, id) => {
......
package org.jeecg.config; package org.jeecg.config;
import org.springframework.beans.factory.annotation.Value; 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.Bean;
import org.springframework.context.annotation.Conditional; import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
...@@ -63,4 +64,12 @@ public class WebMvcConfiguration implements WebMvcConfigurer { ...@@ -63,4 +64,12 @@ public class WebMvcConfiguration implements WebMvcConfigurer {
return new CorsFilter(urlBasedCorsConfigurationSource); return new CorsFilter(urlBasedCorsConfigurationSource);
} }
/**
* SpringBootAdmin的Httptrace不见了
* https://blog.csdn.net/u013810234/article/details/110097201
*/
@Bean
public InMemoryHttpTraceRepository getInMemoryHttpTrace(){
return new InMemoryHttpTraceRepository();
}
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册