How can work on my controller by Spring-Security?

前端 未结 1 1492
渐次进展
渐次进展 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 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)
提交回复
热议问题