开发者

Correct syntax for javax.servlet.annotation.ServletSecurity

开发者 https://www.devze.com 2023-03-04 03:53 出处:网络
Has anybody got a code sample for javax.servlet.annotation.ServletSecurity annotation. I have had a look around but all I find are javadoc开发者_运维问答 pages which won´t tell you how javax.servlet

Has anybody got a code sample for javax.servlet.annotation.ServletSecurity annotation.

I have had a look around but all I find are javadoc开发者_运维问答 pages which won´t tell you how javax.servlet.annotation.ServletSecurity and javax.servlet.annotation.HttpMethodConstraint fit together and how a correct annotation should look like.


How about this example? It uses:

@ServletSecurity(
   @HttpConstraint(rolesAllowed = {"Authorized"})
)
0

精彩评论

暂无评论...
验证码 换一张
取 消