尝试在main方法前面加了一行打印语句:
System.out.println(“SpringBoot Start…”);

结果是可以打印出来的:

SpringBoot Start....
Process finished with exit code 1

那就是程序入口没问题,是run方法执行时一些配置加载得问题了。
try catch打印下异常试试:

try {SpringApplication.run(Application.class, args);
}catch(Exception e) {e.printStackTrace();
}

发现还是没有打印异常。

我们知道Exception还不是最顶级的异常类,于是换成将Exception换成Throwable:

try {SpringApplication.run(Application.class, args);
}catch(Throwable e) {e.printStackTrace();
}

这样就能打印出来了错误了,是一个 ClassDefNotFoundError。

解决方案:

这种情况一般是jar包冲突的问题,仔细排查下各个依赖,该exclude掉的exclude掉,版本之间是否兼容,如springboot和springcloud版本兼容问题等等。
解决好了就可以run起来了。

springboot启动直接退出显示Process finished with exit code 1相关推荐

  1. TensorFlow 2+PyCharm显示“Process finished with exit code -1073740791 (0xC0000409)”

    目录 大致现象 第一个坑:PyCharm不显示报错信息 第二个坑:解决"Could not locate zlibwapi.dll" 大致现象 TensorFlow.Keras中的 ...

  2. python勾股定理、0-30_求助python大神,显示Process finished with exit code 0.

    该楼层疑似违规已被系统折叠 隐藏此楼查看此楼 # Process Contours for c in contours: # Filter Contour By Size if len(humanSi ...

  3. yolov5在plotting labels时停止并显示Process finished with exit code 1

    最近在训练yolov5模型,但在执行train.py时,执行到plotting labels停止.显示错误: 解决办法:报错信息里traceback里第二行,把这个注释掉就可以进入训练了.

  4. #Tensorflow Process finished with exit code 3#

    Tensorflow 报错 Process finished with exit code 3 Process finished with exit code 3 最近在跟着B站视频 视频网址 学习T ...

  5. pycharm debug: Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

    记录: mac上pycharm上debug时,突然弹出以下提示 以为可以加速,点击install后,就出现debug时,程序退出: Process finished with exit code 13 ...

  6. SpringBoot启动代表出现Process finished with exit code 0

    代码都没问题,启动时应用无缘无故就是会出现Process finished with exit code 0,这个是什么意思呢,是应用程序正常退出的意思. 可以科普一下exit code: exit ...

  7. 【问题解决】springboot启动后一小会就自动停止,提示Process finished with exit code 0

    最近springboot启动后一小会就自动停止,没提示具体报错,只有提示: Disconnected from the target VM, address: '127.0.0.1:60011', t ...

  8. SpringBoot启动时:Process finished with exit code 0解决办法

    Process finished with exit code 0并不是报错了,这个表示程序正常执行完毕退出了.这就表示项目启动成功后了,此时运行,最后运行完毕自动退出.但我们是需要访问路径的,所以需 ...

  9. ”填坑“ -- springboot 启动报错 “Process finished with exit code 1”

    pom文件中一个"0" 引发的血案 背景 近期使用spring boot2.0做新项目demo时,发现启动boot项目时,控制台什么错误日志都不显示,显示如下信息: Process ...

最新文章

  1. linux 查看 定时任务 crontab 日志记录
  2. caffe-win10-cifar10另
  3. POJ 3276 枚举+差分?
  4. 大疆aeb连拍_前后双屏幕:大疆OSMO Action行动相机规格与谍照曝光
  5. python重命名文件源码
  6. 【转】hadoop 报 Name node is in safe mode 错
  7. POJ - 3358 Period of an Infinite Binary Expansion(欧拉定理)
  8. 洛谷——P1068 分数线划定
  9. Mecanim动画系统
  10. CSS+JS实现兼容性很好的无限级下拉菜单
  11. ea mysql建模_UML数据建模工具之Enterprise Architect(EA)实例-UML应用
  12. 【动态规划笔记】状压dp:旅行商问题
  13. 合肥青少年信息学计算机竞赛试题,合肥市第二十九届青少年信息学奥林匹克竞赛(小学组)试题及部分答案...
  14. 我写的背包整理插件JPack,比大脚的背包整理效果好
  15. 清华学生的编程能力有多强?大一学生 C++作业引爆全网,特奖得主、阿里P6:我们也做不到...
  16. 浅谈医院HIS系统审计
  17. [转]禅修程序员十诫
  18. html怎么在手机打不开,手机的浏览器打不开网页怎么办
  19. 清北学堂模拟赛d4t4 a
  20. aac +sbr +ps

热门文章

  1. 世界上最奇葩的成人礼大盘点,被子弹蚁咬的同时还要跳十分钟舞
  2. 【Netty】九、Netty自定义协议
  3. netstat -ano 查看端口是否被占用
  4. PX4多冗余传感器代码解读
  5. 物理动画流体实现流程(Physically Based Fluid Animation)
  6. 用python的pandas打开csv文件_python读写数据读写csv文件(pandas用法)
  7. Web APIs --JavaScript学习笔记(总)(包括DOM、BOM)
  8. 雷迪9000使用说明_雷迪司UPS监控软件使用说明
  9. XUL使用中的常见错误
  10. docker笔记之具名挂载与匿名挂载