更新时间:2022-05-19 17:02:46
我假设您正在使用 maven 来获取您的依赖项.
I assume you are using maven to get your dependencies.
我使用以下方法解决了这个问题:
I solved the problem by using:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-webflux</artifactId>
<version>2.0.3.RELEASE</version>
</dependency>
代替:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webflux</artifactId>
<version>5.0.7.RELEASE</version>
</dependency>
ApplicationContextException:由于缺少ServletWebServerFactory bean而无法启动ServletWebServerApplicationContext
Spring Boot Test失败说,由于缺少ServletWebServerFactory bean而无法启动ServletWebServerApplicationContext
由于缺少 ReactiveWebServerFactory bean,无法启动 ReactiveWebApplicationContext
由于在 run 方法中加载上下文 xml 时缺少 EmbeddedServletContainerFactory bean,因此无法启动 EmbeddedWebApplicationContext
春季启动测试:由于缺少EmbeddedServletContainerFactory bean,无法启动EmbeddedWebApplicationContext
由于缺少ServletWebServerFactory bean,无法启动ServletWebServerApplicationContext