Update javadoc in EnableWebSecurity
This commit is contained in:
parent
eb35d3055f
commit
c66370c092
|
@ -46,7 +46,7 @@ import org.springframework.security.web.SecurityFilterChain;
|
|||
*
|
||||
* @Bean
|
||||
* public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
|
||||
* http.authorizeRequests().requestMatchers("/public/**").permitAll().anyRequest()
|
||||
* http.authorizeHttpRequests().requestMatchers("/public/**").permitAll().anyRequest()
|
||||
* .hasRole("USER").and()
|
||||
* // Possibly more configuration ...
|
||||
* .formLogin() // enable form based log in
|
||||
|
|
Loading…
Reference in New Issue