代码之家  ›  专栏  ›  技术社区  ›  Hantsy

为什么@WebFluxTest在Spring Boot 2.1.0.RELEASE中启用Spring安全性

  •  0
  • Hantsy  · 技术社区  · 7 年前

    我试着升级 my sample 在SpringBoot2.1.0版本中 PostControllerTest 使用的 @WebFluxTest 由于弹簧安全保护而失败。但在最初的版本(springboot2.0.0.M7)中,它起了作用。

    1 回复  |  直到 7 年前
        1
  •  2
  •   Brian Clozel    7 年前

    这是springboot2.1.0的预期行为。它已经在中国实施了 spring-boot#13632 和一个 similar issue has been raised already about this . 我们在这里调整springmvc自动配置的行为。

    how to improve your test configuration in the Spring Security documentation