解决:Shiro框架Controller类加@RequiresPermissions请求报404

在shiro的配置文件中加如下红色部分:
<bean class="org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator" depends-on="lifecycleBeanPostProcessor">
    <property name="proxyTargetClass" value="true" />
</bean>

猜你喜欢

转载自blog.csdn.net/m0_67400972/article/details/124490180