当shiro不进入自定义realm的权限认证方法时

需要加入下面的一个bean

@Bean
	public DefaultAdvisorAutoProxyCreator advisorAutoProxyCreator(){
		DefaultAdvisorAutoProxyCreator creator = new DefaultAdvisorAutoProxyCreator();
		creator.setProxyTargetClass(true);
		return creator;
	}

  如果是xml,自己对应转换成xml配置即可(为什么这样做?我目前也不清楚,可能因为版本问题吧,后期再做了解)

原文地址:https://www.cnblogs.com/jianguang/p/6230388.html