看见有人分享了这个,我是用redis做的
RequestStatisticsInterceptor Interceptor{
intercept(Invocation inv) {
String className = inv.getController().getClass().getName();
String methodName = inv.getMethodName();
Jedis jedis = Redis.().getJedis();
(jedis != ){
jedis.hincrBy(,className++methodName,);
jedis.close();
}
inv.invoke();
}
}