mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-01 09:42:13 +00:00
Add @Configuration
Issue gh-6613 Issue gh-9401
This commit is contained in:
parent
84f765a89c
commit
210693eb6b
@ -28,6 +28,7 @@ import reactor.util.context.Context;
|
|||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
|
import org.springframework.context.annotation.Configuration;
|
||||||
import org.springframework.security.access.AccessDeniedException;
|
import org.springframework.security.access.AccessDeniedException;
|
||||||
import org.springframework.security.authentication.TestingAuthenticationToken;
|
import org.springframework.security.authentication.TestingAuthenticationToken;
|
||||||
import org.springframework.security.core.context.ReactiveSecurityContextHolder;
|
import org.springframework.security.core.context.ReactiveSecurityContextHolder;
|
||||||
@ -465,6 +466,7 @@ public class EnableAuthorizationManagerReactiveMethodSecurityTests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@EnableReactiveMethodSecurity(useAuthorizationManager = true)
|
@EnableReactiveMethodSecurity(useAuthorizationManager = true)
|
||||||
|
@Configuration
|
||||||
static class Config {
|
static class Config {
|
||||||
|
|
||||||
ReactiveMessageService delegate = mock(ReactiveMessageService.class);
|
ReactiveMessageService delegate = mock(ReactiveMessageService.class);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user