فهرست منبع

!2 已自测通过, 日志仍然可以正常记录 代码优化,切面没有制定包范围,后期实际项目开发中,spring管理的Bean越来越多的时候, 会严重拖慢项目启动速度, 详细请见https://www.srxblog.top/find/25929.html
Merge pull request !2 from SRX/N/A

mrbird 6 سال پیش
والد
کامیت
cd737e5b5e

+ 1 - 1
febs-server/febs-server-system/src/main/java/cc/mrbird/febs/server/system/aspect/ControllerEndpointAspect.java

@@ -26,7 +26,7 @@ public class ControllerEndpointAspect extends BaseAspectSupport {
 
     private final ILogService logService;
 
-    @Pointcut("@annotation(cc.mrbird.febs.server.system.annotation.ControllerEndpoint)")
+    @Pointcut("execution(* cc.mrbird.febs.server.system.controller.*.*(..)) && @annotation(cc.mrbird.febs.server.system.annotation.ControllerEndpoint)")
     public void pointcut() {
     }