Spring Boot启动异常Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.
原因:
1.百度到的正常答案缺少以下注释(但我不正常的)
@SpringBootApplication
2.将Maven中的依赖中的spring-boot-starter-webflux改为spring-boot-starter-web(之前试了下webflux忘了改回来,官方也有说不能与starter-web并存)