JAVA Spring boot Process finished with exit code 0
原因:
检查配置文件是否引入spring-boot-starter-web配置依赖
问题解决:
1.maven:
pom引入
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
2.gradle:
build.gradle引入
implementation 'org.springframework.boot:spring-boot-starter-web'