要在您的Spring MVC控制器中使用基于注释的方法安全性,您需要在
DispatcherServlet的上下文配置文件中设置以下内容。
<security:global-method-security pre-post-annotations="enabled" secured-annotations="enabled" />
似乎您将其放入其他配置文件中。

要在您的Spring MVC控制器中使用基于注释的方法安全性,您需要在
DispatcherServlet的上下文配置文件中设置以下内容。
<security:global-method-security pre-post-annotations="enabled" secured-annotations="enabled" />
似乎您将其放入其他配置文件中。