为什么@WebFluxTest 在 Spring Boot 2.1.0.RELEASE 中启用 Spring 安全性
Why @WebFluxTest enable Spring Security in Spring Boot 2.1.0.RELEASE
我尝试升级使用 @WebFluxTest
的 my sample to Spring Boot 2.1.0.RELEASE, the PostControllerTest,由于 Spring 安全保护而失败。但是在初始版本(Spring Boot 2.0.0.M7)中它起作用了。
这是 Spring Boot 2.1.0 的预期行为。它已在 spring-boot#13632 and a similar issue has been raised already about this 中实现。我们在此处与 Spring MVC 自动配置的行为保持一致。
你可以学习how to improve your test configuration in the Spring Security documentation.
我尝试升级使用 @WebFluxTest
的 my sample to Spring Boot 2.1.0.RELEASE, the PostControllerTest,由于 Spring 安全保护而失败。但是在初始版本(Spring Boot 2.0.0.M7)中它起作用了。
这是 Spring Boot 2.1.0 的预期行为。它已在 spring-boot#13632 and a similar issue has been raised already about this 中实现。我们在此处与 Spring MVC 自动配置的行为保持一致。
你可以学习how to improve your test configuration in the Spring Security documentation.