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">
|
* <pre class="code">
|
||||||
* @EnableWebFluxSecurity
|
* @EnableWebFluxSecurity
|
||||||
* public class MyExplicitSecurityConfiguration {
|
* public class MyExplicitSecurityConfiguration {
|
||||||
|
* // @formatter:off
|
||||||
* @Bean
|
* @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
|
||||||
* @Bean
|
* @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
|
||||||
|
|
Loading…
Reference in New Issue