ToB企服应用市场:ToB评测及商务社交产业平台

标题: Web application could not be started as there was no org.springframewo [打印本页]

作者: 小秦哥    时间: 2024-12-7 14:08
标题: Web application could not be started as there was no org.springframewo
问题描述:

1. 当springboot项目启动时,报错Web application could not be started as there was no org.springframework.boot.web.servlet.server


大概原因:

1. Springboot的主启动类是自己写的,背面改了一下类名,但是main方法中的这行代码中类名没改过来:SpringApplication.run(本主启动类名.class, args)
2. 启动类不在 com.xx.xxx文件夹下,而在java文件夹下,如下错误案例:

3. 在maven/gradle中没有引入spring-boot-starter-web 的jar包。



免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。




欢迎光临 ToB企服应用市场:ToB评测及商务社交产业平台 (https://dis.qidao123.com/) Powered by Discuz! X3.4