You want to allow one set of roles to POST to a resource and another set of roles to GET it. Which two configuration options should you use? (Choose two.)
A.
two separate @HttpMethodConstraints annotations and sets of roles
B.
a single @HttpMethodContstraint annotation and a map of method to roles
C.
two <web-resource-collection> with different <http-method> in the deployment descriptor
D.
a single <web-resource-collection> with two <auth-constraint> with different <http-method> in the deployment descriptor
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
orjava
7 months agodevmsaleh
2 years ago