springboot 启动直接退出 SpringBoot Process finished with exit code 0

用idea 快速创建springboot项目,没有报错直接就运行退出

SpringBoot Process finished with exit code 0

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v2.3.4.RELEASE)

2020-09-30 15:26:22.401  INFO 22148 --- [           main] c.d.z.DiscoverZookeeperApplication       : Starting DiscoverZookeeperApplication on coreydeMacBook-Pro.local with PID 22148 (/Users/corey/develope/idea_project/idea_company/spring-cloud-dap/discover-zookeeper/target/classes started by corey in /Users/corey/develope/idea_project/idea_company/spring-cloud-dap)
2020-09-30 15:26:22.405  INFO 22148 --- [           main] c.d.z.DiscoverZookeeperApplication       : No active profile set, falling back to default profiles: default
2020-09-30 15:26:22.945  INFO 22148 --- [           main] c.d.z.DiscoverZookeeperApplication       : Started DiscoverZookeeperApplication in 0.914 seconds (JVM running for 1.585)

Process finished with exit code 0

pom文件没有添加web 依赖

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

添加后,重启编译项目运行成功

 

 

  • 4
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值