springmvc shiro注解 无效 不起作用。原因aop开启放在了spring-shiro.xml或applicationContext.xml中。
<aop:config proxy-target-class="true"></aop:config>
开启aop自动代理要放在 dispatcher-servlet中。
本文探讨了SpringMVC与Shiro结合使用时出现的注解失效问题,并指出了解决方案:确保AOP配置正确放置在dispatcher-servlet.xml而非其他配置文件中。
springmvc shiro注解 无效 不起作用。原因aop开启放在了spring-shiro.xml或applicationContext.xml中。
<aop:config proxy-target-class="true"></aop:config>
开启aop自动代理要放在 dispatcher-servlet中。
874
915

被折叠的 条评论
为什么被折叠?