Correct syntax for javax.servlet.annotation.ServletSecurity
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"})
)
精彩评论