Spring使用自定義切面(aop)方法時不生效

這裏我以shiro+springboot的一個例子爲例,理解爲主即可 1.先了解怎麼做到spring切面編程(aop) 1).製作切面類 2).在userServiceimpl加入切面註解   2.確定在那裏使用到被切對象     1).shiro中使用到userService     2.)在 controller使用到 注意其中config(springboot的啓動類)對象中加載shiro對
相關文章
相關標籤/搜索