In a Spring Security enabled project, which method is used to configure HTTP security?
- configureSecurity()
- configureHttpSecurity()
- secureHttp()
- httpSecurity()
In Spring Security, the method used to configure HTTP security is configure(HttpSecurity http). This method allows you to define security rules for HTTP requests, such as authentication, authorization, and access control. While the other options may sound plausible, configure(HttpSecurity http) is the standard method name for this purpose.
Loading...
Related Quiz
- For optimizing database connection pooling in Spring Boot, adjusting the _____ property is crucial.
- In Spring Boot, the _____ annotation is used to denote a reactive programming model in a controller.
- To conditionally apply an auto-configuration based on the value of a configuration property, the _____ annotation is used in Spring Boot.
- In a Spring Boot application, the _____ annotation can be used to enable OAuth2 Authorization Server features.
- In Spring Boot, how do you handle conflicts between properties defined in the application properties file and environment variables?