How can work on my controller by Spring-Security?

前端 未结 1 1491
渐次进展
渐次进展 2021-02-06 10:04

I\'m stuck in this issue for a long time. I want to use @Secure to add Access Control to my controller ArticleController.java like this:



        
相关标签:
1条回答
  • 2021-02-06 10:12

    As suggested by @Luke Taylor in the comments the tag <sec:global-method-security/> needs to be defined in the dispatcher-servlet.xml(webmvc-config.xml in this case) file. And there is no need to have attribute mode="aspectj".

    Thanks.

    0 讨论(0)
提交回复
热议问题