springboot 启动直接退出 Process finish

2021-10-09  本文已影响0人  ttiga

运行gateway网关微服务时,没有报错直接就运行退出

image.png

报错

Process finished with exit code 0

原因:

微服务没有添加springboot的web环境依赖,或是没有继承父工程

解决方案:

微服务的pom.xml中添加

<dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
 </dependency>
上一篇下一篇

猜你喜欢

热点阅读