org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.

SpringBoot启动时异常信息如下:

org.springframework.context.ApplicationContextException: Unable to start web server; nested exceptio

Spring Boot启动出现错误,错误内容大概的意思是:未能加载嵌入的供web应用加载的空间,是因为缺少ServletWebServerFactory bean,在stackflow上面看到了这个错误的解决办法。

这里,添加了一个@EnableAutoConfiguration注解来解决问题。

org.springframework.context.ApplicationContextException: Unable to start web server; nested exceptio

参考文档:

https://blog.csdn.net/u010429286/article/details/52636753

http://stackoverflow.com/questions/21783391/spring-boot-unable-to-start-embeddedwebapplicationcontext-due-to-missing-embedd

相关文章:

  • 2022-12-23
  • 2021-10-26
  • 2022-12-23
  • 2021-09-16
  • 2022-01-08
  • 2021-06-26
  • 2021-07-07
  • 2021-08-22
猜你喜欢
  • 2022-12-23
  • 2022-01-18
  • 2021-05-12
  • 2021-06-29
相关资源
相似解决方案