上下文中找不到org.springframework.boot.web.servlet.server.ServletWebServerFactory bean

1.问题

报错如下:
Description:
Web application could not be started as there was no org.springframework.boot.web.servlet.server.ServletWebServerFactory bean defined in the context.
Action:
Check your application's dependencies for a supported servlet web server.
Check the configured web application type.

2.解决


启动项中写错了,应调用的是SpringBootCreateManualApplication的类而不是SpringApplication的类(SpringApplication是我写的前一个springboot项目启动项)

posted @   DawnTraveler  阅读(4344)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 【.NET】调用本地 Deepseek 模型
· CSnakes vs Python.NET:高效嵌入与灵活互通的跨语言方案对比
· 我与微信审核的“相爱相杀”看个人小程序副业
· DeepSeek “源神”启动!「GitHub 热点速览」
· Plotly.NET 一个为 .NET 打造的强大开源交互式图表库
点击右上角即可分享
微信分享提示