mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-05-31 01:02:14 +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.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.security.access.AccessDeniedException;
|
||||
import org.springframework.security.authentication.TestingAuthenticationToken;
|
||||
import org.springframework.security.core.context.ReactiveSecurityContextHolder;
|
||||
@ -465,6 +466,7 @@ public class EnableAuthorizationManagerReactiveMethodSecurityTests {
|
||||
}
|
||||
|
||||
@EnableReactiveMethodSecurity(useAuthorizationManager = true)
|
||||
@Configuration
|
||||
static class Config {
|
||||
|
||||
ReactiveMessageService delegate = mock(ReactiveMessageService.class);
|
||||
|
Loading…
x
Reference in New Issue
Block a user