mirror of
https://gitee.com/huoyo/ko-time.git
synced 2025-12-06 08:48:30 +08:00
optimize the saver
This commit is contained in:
parent
051a3643e7
commit
f2b0dc0234
@ -18,7 +18,7 @@
|
||||
* 必填配置
|
||||
|
||||
>
|
||||
> ko-time.pointcut=`execution(public * com.huoyo..*.*(..))` # 需要监测的切面范围,参考aop的@pointcut 或者左侧常见问题
|
||||
> ko-time.pointcut=`execution(public * com.huoyo..*.*(..))` # 需要监测的切面范围,参考aop的@pointcut 或者左侧`常见问题`
|
||||
>
|
||||
|
||||
|
||||
|
||||
@ -38,6 +38,10 @@ com.huoyo.demo
|
||||
|
||||
> `execution(public * com.huoyo.demo.others..*.*(..))`
|
||||
|
||||
如果想排除某些类如Test.class,可以
|
||||
|
||||
> `execution(public * com.huoyo.demo.others..*.*(..)) && !execution(public * com.huoyo.demo.others.Test(..))`
|
||||
|
||||
更多写法请详细参考aop
|
||||
|
||||
## 是否支持前后端分离项目
|
||||
|
||||
@ -49,6 +49,9 @@ public class MemoryBase implements GraphService {
|
||||
} else {
|
||||
if (methodNode.getMethodType() == MethodType.Controller && !StringUtils.isEmpty(methodNode.getRouteName())) {
|
||||
MethodNode controller = methodNodes.get(methodNode.getId());
|
||||
if (controller==null) {
|
||||
return;
|
||||
}
|
||||
controller.setRouteName(methodNode.getRouteName());
|
||||
methodNodes.put(methodNode.getId(), controller);
|
||||
}
|
||||
|
||||
@ -50,6 +50,9 @@ public class RedisBase implements GraphService {
|
||||
} else {
|
||||
if (methodNode.getMethodType() == MethodType.Controller && !StringUtils.isEmpty(methodNode.getRouteName())) {
|
||||
MethodNode controller = query(key, MethodNode.class);
|
||||
if (controller==null) {
|
||||
return;
|
||||
}
|
||||
controller.setRouteName(methodNode.getRouteName());
|
||||
insert(key, controller);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user