无任何异常信息,springboot 自动停止。
解决方法:pom文件加入 web 架包。
在pom.xml中加入
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
java项目启动不需要容器,但是springCloud项目都是web项目,所以需要容器才能启动。