成功运行效果图:
浏览器打开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 了!