首先要添加依赖
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency>
然后application.properties添加配置:
logging.path=/mylog
logging.file=myy.log
然后再get 访问/logfile 就可以查看日志啦
转载于:https://www.cnblogs.com/yish/p/5982633.html
最后
以上就是健康小蜜蜂最近收集整理的关于Spring Boot 远程查看日志的全部内容,更多相关Spring内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复