IDEA启动报错:Process finished with exit code 0

问题

SpringBoot项目启动后自动关闭
IDEA启动报错:Process finished with exit code 0_第1张图片

方案一

在pom中添加spring-boot-starter-web依赖

<dependency>
  <groupId>org.springframework.bootgroupId>
  <artifactId>spring-boot-starter-tomcatartifactId>
dependency>

方案二

在pom中添加spring-boot-starter-tomcat依赖

<dependency>
   <groupId>org.springframework.bootgroupId>
   <artifactId>spring-boot-starter-tomcatartifactId>
dependency>

你可能感兴趣的:(教程与问题,intellij-idea,java,maven)