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.
Loading...
Related Quiz
- How can you create a shared bean that is not a singleton in Spring Boot?
- In a distributed environment, using Spring Boot, cache synchronization can be achieved efficiently through _____.
- To define hierarchical properties in a YAML configuration file in Spring Boot, you can use _____.
- What is the primary role of a Resource Server in OAuth2?
- In Spring Boot, how can you implement a cache-aside caching strategy effectively?