Revert "Remove @Configuration from webflux config examples"
This reverts commit aec9effb88
.
This commit is contained in:
parent
aec9effb88
commit
a72c5a55db
|
@ -64,6 +64,7 @@ The following page shows an explicit version of the minimal WebFlux Security con
|
||||||
.Java
|
.Java
|
||||||
[source,java,role="primary"]
|
[source,java,role="primary"]
|
||||||
-----
|
-----
|
||||||
|
@Configuration
|
||||||
@EnableWebFluxSecurity
|
@EnableWebFluxSecurity
|
||||||
public class HelloWebfluxSecurityConfig {
|
public class HelloWebfluxSecurityConfig {
|
||||||
|
|
||||||
|
@ -93,6 +94,7 @@ public class HelloWebfluxSecurityConfig {
|
||||||
.Kotlin
|
.Kotlin
|
||||||
[source,kotlin,role="secondary"]
|
[source,kotlin,role="secondary"]
|
||||||
-----
|
-----
|
||||||
|
@Configuration
|
||||||
@EnableWebFluxSecurity
|
@EnableWebFluxSecurity
|
||||||
class HelloWebfluxSecurityConfig {
|
class HelloWebfluxSecurityConfig {
|
||||||
|
|
||||||
|
@ -136,6 +138,7 @@ For example, you can isolate configuration for URLs that start with `/api`:
|
||||||
.Java
|
.Java
|
||||||
[source,java,role="primary"]
|
[source,java,role="primary"]
|
||||||
----
|
----
|
||||||
|
@Configuration
|
||||||
@EnableWebFluxSecurity
|
@EnableWebFluxSecurity
|
||||||
static class MultiSecurityHttpConfig {
|
static class MultiSecurityHttpConfig {
|
||||||
|
|
||||||
|
@ -173,6 +176,7 @@ static class MultiSecurityHttpConfig {
|
||||||
.Kotlin
|
.Kotlin
|
||||||
[source,kotlin,role="secondary"]
|
[source,kotlin,role="secondary"]
|
||||||
----
|
----
|
||||||
|
@Configuration
|
||||||
@EnableWebFluxSecurity
|
@EnableWebFluxSecurity
|
||||||
open class MultiSecurityHttpConfig {
|
open class MultiSecurityHttpConfig {
|
||||||
@Order(Ordered.HIGHEST_PRECEDENCE) <1>
|
@Order(Ordered.HIGHEST_PRECEDENCE) <1>
|
||||||
|
|
Loading…
Reference in New Issue