To enable global method security in Spring Security, the _____ attribute should be set to true in the @EnableGlobalMethodSecurity annotation.

  • jsr250Enabled
  • prePostEnabled
  • roleHierarchyEnabled
  • securedEnabled
To enable global method security in Spring Security, you should set the prePostEnabled attribute to true in the @EnableGlobalMethodSecurity annotation. This enables the use of @PreAuthorize and @PostAuthorize annotations for method-level security.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *