# api-perf **Repository Path**: zerolinck/api-perf ## Basic Information - **Project Name**: api-perf - **Description**: 使用超级简单的记录接口响应时间工具,支持 SpringBoot Web 项目 - **Primary Language**: Unknown - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-12-16 - **Last Updated**: 2022-07-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # api-perf 接口性能记录工具,只需要下载本项目执行 `mvn install`,将其安装到本地 maven 仓库中 在需要使用接口性能记录的项目的 pom.xml 中加入,如下依赖 ~~~xml com.linck.perf api-perf-spring-boot-starter 0.1 compile ~~~ gradle 中加入 ~~~groovy implementation 'com.linck.perf:api-perf-spring-boot-starter:0.1' ~~~ 并在 application.yml 中增加如下配置 ~~~yml perf: enable: true ~~~ 启动项目,调用接口,即可看到类似如下的日志内容 ~~~ ... INFO ...: URL: /sys/user/login, RequestMethod: POST, 响应时间: 117 ms ... INFO ...: URL: /sys/user/register, RequestMethod: POST, 响应时间: 24 ms ... INFO ...: URL: /test/getNotParam, RequestMethod: GET, 响应时间: 1 ms ~~~