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.
Add your answer
Loading...

Leave a comment

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