When using @Secured and @PreAuthorize annotations, what is the primary configuration attribute that needs to be enabled?

  • expressionHandler
  • methodSecurity
  • prePostEnabled
  • securedEnabled
To use @Secured and @PreAuthorize annotations in Spring Security, you need to enable the prePostEnabled attribute in the security configuration. This attribute enables the use of pre- and post-invocation expression handling.
Add your answer
Loading...

Leave a comment

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