在springboot中开启shiro注解支持在Shiro配置类中注册如下两个Bean
在Shiro配置类中注册如下两个Bean @Beanpublic DefaultAdvisorAutoProxyCreator advisorAutoProxyCreator() { DefaultAdvisorAutoProxyCreator advisorAutoProxyCreator = new DefaultAdvisorAutoProxyCreator(); advisorAutoProxyCreator.setProxyTargetClass(true); return advis