SpringBoot启动直接结束 控制台只显示 “Process finished with exit code 1”

问题

参考:https://www.xttblog.com/?p=2992
SpringBoot项目启动后只在控制台输出Process finished with exit code 1
尝试执行命令

mvn clean install -Dmaven.test.skip=true
image.png

这种通常是配置文件的问题,删除logback-spring.xml就可以正常启动


image.png

后来给日志配置文件首行加了一个空行就可以正常启动,不太明白是什么原因


image.png

你可能感兴趣的:(SpringBoot启动直接结束 控制台只显示 “Process finished with exit code 1”)