Spring-Boot新项目启动总是提示:Process-finished-with-exit-code-0

Terwer...小于 1 分钟经验分享端口冲突springspring-bootexit退出

可能原因

1.端口冲突检查端口号

2.缺少 web 启动依赖

<!-- web -->
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
</dependency>

我的是第 2 个原因。

注意加入之后,要刷新 maven。

后记

推荐一个自动管理 SpringBoot 的 starter 的插件,很好用:

EditStarters

https://plugins.jetbrains.com/plugin/11543-editstartersopen in new window

评论
  • 按正序
  • 按倒序
  • 按热度
Powered by Waline v2.14.9