java -jar file.jar --logging.file=file.log file.jar是springboot应用,--logging.file可以设置标准输出写入文件,方便调试,与在控制台运行main方法的输出一样