Below is the default implementation of the configure method of WebSecurityConfigurerAdapter class
WebSecurityConfigurerAdapter
protected void configure(HttpSecurity http) thr