公共模块 aop,扫描所有模块的 controller 接口,切点如何配置?
execution(* com.hao.mimi.controller...(..)))"
类似这种只能扫描自己的模块
1
BQsummer Oct 20, 2021
@Pointcut("within(@org.springframework.web.bind.annotation.RestController *) || within(@org.springframework.stereotype.Controller *)")
|
3
icelo Oct 20, 2021 via iPhone
我觉得用自定义注解配置会很好
|
4
icelo Oct 20, 2021 via iPhone
如果是所有的当我没说
|
6
wolfie Oct 20, 2021
|