소스 검색

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

SRX 6 년 전
부모
커밋
1ce009cdf4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      febs-server/febs-server-system/src/main/java/cc/mrbird/febs/server/system/aspect/ControllerEndpointAspect.java

+ 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() {
     }