我正在使用 spring boot 2.1.1 版本并使用@EnableWebFlux,但出现了一些错误。
错误是
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.reactive.config.DelegatingWebFluxConfiguration': Initialization of bean failed; nested exception is java.lang.IllegalStateException: The Java/XML config for Spring MVC and Spring WebFlux cannot both be enabled, e.g. via @EnableWebMvc and @EnableWebFlux, in the same application
Run Code Online (Sandbox Code Playgroud)
我该如何解决这个问题。
我配置了 bitbucket-pipelines.yml 并使用了image: gradle:6.3.0-jdk11. 我的项目基于 Java11 和 Gradle 6.3 构建。一切都很好,直到开始测试用例。因为我使用 Testontainers 来测试应用程序。Bitbucket 无法启动测试容器。错误是:
org.testcontainers.containers.ContainerLaunchException: Container startup failed
如何解决这个问题?