mirror of https://gitee.com/stylefeng/roses
【7.1.6】【statistics】更新参数
parent
80914544b9
commit
06ee603e38
|
@ -61,7 +61,7 @@ public class InterfaceStatisticsAop implements Ordered {
|
||||||
|
|
||||||
// 执行统计业务,只统计指定的几个接口
|
// 执行统计业务,只统计指定的几个接口
|
||||||
try {
|
try {
|
||||||
saveRequestCount(joinPoint);
|
saveRequestCount();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
// 统计业务出现异常打印日志
|
// 统计业务出现异常打印日志
|
||||||
log.error("接口统计出现异常!", e);
|
log.error("接口统计出现异常!", e);
|
||||||
|
@ -76,7 +76,7 @@ public class InterfaceStatisticsAop implements Ordered {
|
||||||
* @author fengshuonan
|
* @author fengshuonan
|
||||||
* @date 2022/2/10 21:25
|
* @date 2022/2/10 21:25
|
||||||
*/
|
*/
|
||||||
private void saveRequestCount(ProceedingJoinPoint joinPoint) {
|
private void saveRequestCount() {
|
||||||
|
|
||||||
// 获取请求的地址
|
// 获取请求的地址
|
||||||
HttpServletRequest request = HttpServletUtil.getRequest();
|
HttpServletRequest request = HttpServletUtil.getRequest();
|
||||||
|
|
Loading…
Reference in New Issue