成功运行效果图:
浏览器打开http://localhost:8139/profiler.html 可以查看到你项目下所有的controller

点击任意一个controller将会跳转到该controller下的所有方法的访问详细信息:

使用方式:
1、下载源码地址:https://github.com/chayedan008/controllerProfiler
ezprofiler-spring-boot-starter为源码项目,ezprofiler-client为使用例子。
2、使用maven编译源码项目maven clean install
3、在需要统计接口的项目的pom.xml添加
<dependency> <groupId>com.github.xjs</groupId> <artifactId>ezprofiler-spring-boot-starter</artifactId> <version>0.0.1-SNAPSHOT</version> </dependency>
4、新建一个类添加配置
@EnableProfiler
@Configuration
public class EzProfilerConfigure {
}
启动自己的项目浏览器输入http://localhost:8139/profiler.html 就ok 了!
本文介绍了一种名为controllerProfiler的Spring Boot性能分析工具,通过在项目中集成此工具,开发者可以详细监控和分析控制器及其方法的性能指标。该工具提供了一个可视化的网页界面,展示项目中所有控制器的调用情况,帮助定位性能瓶颈。
852

被折叠的 条评论
为什么被折叠?



