When configuring Global Method Security, which attribute determines the order in which the security annotations are evaluated?
- prePostAnnotations
- order
- securedEnabled
- jsr250Enabled
The order attribute determines the order in which security annotations are evaluated. A lower order value means higher precedence. By setting the order attribute, you can control the order of evaluation for security annotations like @PreAuthorize and @PostAuthorize.
Loading...
Related Quiz
- When performing tests with @DataJpaTest, it is important to ensure that the _____ is correctly configured.
- While testing a Spring Boot application, you encounter issues with the security configurations impacting the test results. How would you isolate and resolve such issues during testing?
- The _____ annotation in Spring Boot is used to designate a specific bean to be autowired when there are multiple candidates.
- How can you restrict access to specific HTTP methods in Spring Security?
- How does the @Controller annotation interact with the view in a traditional Spring MVC application?