Add @formatter to @EnableWebFluxSecurity Javadoc
Fixes: gh-5898
This commit is contained in:
parent
e67264ae2c
commit
5d18bb68ed
|
@ -54,6 +54,7 @@ import java.lang.annotation.Target;
|
|||
* <pre class="code">
|
||||
* @EnableWebFluxSecurity
|
||||
* public class MyExplicitSecurityConfiguration {
|
||||
* // @formatter:off
|
||||
* @Bean
|
||||
* public SecurityWebFilterChain springSecurityFilterChain(ServerHttpSecurity http) {
|
||||
* http
|
||||
|
@ -64,7 +65,9 @@ import java.lang.annotation.Target;
|
|||
* .formLogin();
|
||||
* return http.build();
|
||||
* }
|
||||
* // @formatter:on
|
||||
*
|
||||
* // @formatter:off
|
||||
* @Bean
|
||||
* public MapReactiveUserDetailsService userDetailsService() {
|
||||
* UserDetails user = User.withDefaultPasswordEncoder()
|
||||
|
@ -74,6 +77,7 @@ import java.lang.annotation.Target;
|
|||
* .build();
|
||||
* return new MapReactiveUserDetailsService(user);
|
||||
* }
|
||||
* // @formatter:on
|
||||
* }
|
||||
*
|
||||
* @author Rob Winch
|
||||
|
|
Loading…
Reference in New Issue