optimize the saver

This commit is contained in:
huoyo 2022-09-04 15:17:42 +08:00
parent 051a3643e7
commit f2b0dc0234
4 changed files with 11 additions and 1 deletions

View File

@ -18,7 +18,7 @@
* 必填配置
>
> ko-time.pointcut=`execution(public * com.huoyo..*.*(..))` # 需要监测的切面范围参考aop的@pointcut 或者左侧常见问题
> ko-time.pointcut=`execution(public * com.huoyo..*.*(..))` # 需要监测的切面范围参考aop的@pointcut 或者左侧`常见问题`
>

View File

@ -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
## 是否支持前后端分离项目

View File

@ -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);
}

View File

@ -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);
}