springboot 远程日志
生活随笔
收集整理的這篇文章主要介紹了
springboot 远程日志
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
2019獨(dú)角獸企業(yè)重金招聘Python工程師標(biāo)準(zhǔn)>>>
添加依賴
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-actuator</artifactId> </dependency>然后application.properties添加配置:
logging.path=/mylog
logging.file=myy.log
?
然后再get 訪問/logfile 就可以查看日志啦
轉(zhuǎn)載于:https://my.oschina.net/bddiudiu/blog/814192
總結(jié)
以上是生活随笔為你收集整理的springboot 远程日志的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Git 学习看这篇就够了!
- 下一篇: 【powerdesigner】将pdm或