最近用Actuator监控各个应用,发现在监控平台看log日志,都很正常,但用下载功能时,看到的日志总是乱码。
解决办法是在各个client端加入以下配置
spring:
http:
encoding:
charset: UTF-8
#spring.http.encoding.enable=true
force: true
强制编码后,相关日志下载不再乱码了。
最近用Actuator监控各个应用,发现在监控平台看log日志,都很正常,但用下载功能时,看到的日志总是乱码。
解决办法是在各个client端加入以下配置
spring:
http:
encoding:
charset: UTF-8
#spring.http.encoding.enable=true
force: true
强制编码后,相关日志下载不再乱码了。
本文标题:解决Actuator监控下载日志乱码的问题
本文链接:https://www.haomeiwen.com/subject/wdskphtx.html
网友评论