
spring boot 启动时报错
检查pom文件配置
<!-- spring boot 主框架 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
</exclusions>
</dependency>
将<exclusions></exclusions>内容删除
本文介绍了一种常见的SpringBoot应用程序启动时报错的情况,并提供了解决方案。具体来说,如果在启动过程中遇到与pom.xml文件配置相关的问题,可以通过调整依赖项排除设置来解决。示例中展示了如何移除特定的排除项以确保spring-boot-starter-web模块能够正常加载。
1743

被折叠的 条评论
为什么被折叠?



