SpringBoot启动后直接退出 控制台显示Process finished with exit code 1
2021-04-25 11:05
351 查看
问题描述:
出现这个问题时,控制台没有任何输出,进程直接退出Process finished with exit code 1
问题解决:
使用 try catch 捕捉异常查看,发现还是没有任何日志
public static void main(String[] args) { try { SpringApplication.run(ApiBdszApplication.class, args); }catch (Exception e){ e.printStackTrace(); } } 但是作为踩坑无数的 Java 程序员,我们知道 Exception 还不是最顶级的异常类,于是换成 Throwable public static void main(String[] args) { try { SpringApplication.run(ApiBdszApplication.class, args); }catch (Throwable e){ e.printStackTrace(); } } 此时日志打印除了错误的内容,按照日志提示解决
最后
在搜这个问题期间,看了许多网上的解决方案,最终得出三个解决方式
1.采用以上的捕获方式
2.查看自己是否springboot版本和springcloud版本是否匹配
3.查看自己是否将一些配置文件写错。
转载于https://blog.csdn.net/hfezreal/article/details/109734502 如有侵权,联系删除
相关文章推荐
- SpringBoot启动直接结束 控制台只显示 “Process finished with exit code 1” 处理方式
- 项目启动报错: process finished with exit code 1
- 安装Android Studio 3.3.2及启动模拟器出错“emulator: Process finished with exit code 1“的解决
- Process finished with exit code 0 Springboot启动异常
- springboot 正常启动工程报:Process finished with exit code 0
- Idea启动项目:Process finished with exit code 0
- idea Process finished with exit code -1073741819 (0xC0000005)
- Python 运行出现Process finished with exit code -1073741515 (0xC0000135)错误
- pyCharm Process finished with exit code -1073740791 (0xC0000409)
- Android Studio各种坑爹之:finished with non-zero exit value 1和Return code 1 for dex process.
- Process finished with exit code -1073741819 (0xC0000005)
- process finished with exit code 52
- 已解决:Pycharm报错:Process finished with exit code -1073741819 (0xC0000005)
- could not create cudnn handle: CUDNN_STATUS_ALLOC_FAILED Process finished with exit code -1073741819
- python 使用requests时提示Process finished with exit code -1073741819 (0xC0000005)
- 用pycharm跑神经网络,因Process finished with exit code -1073740791 (0xC0000409)停止
- pycharm_运行不出结果,也不报错_Process finished with exit code 0
- Python笔记——pyCharm错误: Process finished with exit code -1073740791 (0xC0000409)
- 【待解决】程序异常终止:Process finished with exit code -1073741819 (0xC0000005)
- 解决win10+cuda9.2+Tensorflow+keras出错问题:Process finished with exit code -1073741819(0xc000005)