spring boot 默认使用日志打印到console
添加application.properties文件在src/main/resoures文件夹下
logging.file=my.log
将日志写在文件中
详细使用方法:
spring boot 默认使用日志打印到console
添加application.properties文件在src/main/resoures文件夹下
logging.file=my.log
将日志写在文件中
详细使用方法:
原文:https://www.cnblogs.com/pangkang/p/8227859.html