Add @formatter to @EnableWebFluxSecurity Javadoc

Fixes: gh-5898
This commit is contained in:
Rob Winch 2018-09-21 08:11:50 -05:00
parent e67264ae2c
commit 5d18bb68ed
1 changed files with 4 additions and 0 deletions

View File

@ -54,6 +54,7 @@ import java.lang.annotation.Target;
* <pre class="code"> * <pre class="code">
* &#064;EnableWebFluxSecurity * &#064;EnableWebFluxSecurity
* public class MyExplicitSecurityConfiguration { * public class MyExplicitSecurityConfiguration {
* // @formatter:off
* &#064;Bean * &#064;Bean
* public SecurityWebFilterChain springSecurityFilterChain(ServerHttpSecurity http) { * public SecurityWebFilterChain springSecurityFilterChain(ServerHttpSecurity http) {
* http * http
@ -64,7 +65,9 @@ import java.lang.annotation.Target;
* .formLogin(); * .formLogin();
* return http.build(); * return http.build();
* } * }
* // @formatter:on
* *
* // @formatter:off
* &#064;Bean * &#064;Bean
* public MapReactiveUserDetailsService userDetailsService() { * public MapReactiveUserDetailsService userDetailsService() {
* UserDetails user = User.withDefaultPasswordEncoder() * UserDetails user = User.withDefaultPasswordEncoder()
@ -74,6 +77,7 @@ import java.lang.annotation.Target;
* .build(); * .build();
* return new MapReactiveUserDetailsService(user); * return new MapReactiveUserDetailsService(user);
* } * }
* // @formatter:on
* } * }
* *
* @author Rob Winch * @author Rob Winch