springboot单元测试之查看debugger日志(三)

1在eclipse中导入springboot项目,如果没有安装eclipse的,可以查看:https://www.cnblogs.com/zhushilai/p/13443053.html

不会导入项目的,可以查看https://www.cnblogs.com/zhushilai/p/13468008.html

2springboot项目安装了Maven环境,没有安装的,可以查看    https://www.cnblogs.com/zhushilai/p/13447327.html

3鼠标右键点击项目,然后在目录中找到Run As ,之后运行mvn install

4找到项目target的目录,找到步骤3中刚打的对应的jar包,然后运行 java -jar  xxx.jar  --debug,即可查看非常详细的日志

如果会使用xshell,可以使用sz  xxx 导出日志查看;也可以是用rz  xxx,导入文件

原文地址:https://www.cnblogs.com/zhushilai/p/13535481.html