Closed ZYuanCheng closed 2 years ago
Please fill it out carefully, or it will be closed. 请认真填写,不然会直接关闭。
JDK Version(required): 1.8
SpringBoot Version(required): 2.2.6
dynamic-datasource-spring-boot-starter Version(required):
druid Version(optional):1.1.22
你这种调用方式,并不会触发AOP拦截。 解决: 1-把getArticles放到其他service中,通过 service.getArticles 调用 2-查一下@EnableAspectJAutoProxy(exposeProxy = true)这种方式
Please fill it out carefully, or it will be closed. 请认真填写,不然会直接关闭。
Enviroment
JDK Version(required): 1.8
SpringBoot Version(required): 2.2.6
dynamic-datasource-spring-boot-starter Version(required):
druid Version(optional):1.1.22
Describe what happened