Return to site


· spring,java,vcp

Which of these statements about @EnableMethodSecurity attributes are true?

* jsr250Enabled Determines if JSR-250 annotations should be enabled.

* prePostEnabled Determines if Spring Security's PreAuthorize, PostAuthorize, PreFilter, PostFilter and RolesAllowed annotations should be enabled.

* securedEnabled Determines if Spring Security's Secured annotation should be enabled.

#spring #certificationquestion #vcp

jsr250Enabled and securedEnabled statements are correct.

prePostEnabled is incorrect because it mentionned RolesAllowed which is not concerned by prePostEnabled attribute.