最近用Actuator监控各个应用,发现在监控平台看log日志,都很正常,但用下载功能时,看到的日志总是乱码。 解决办法是在各个client端加入以下配置
spring: http: encoding: charset: UTF-8 #spring.http.encoding.enable=true force: true
强制编码后,相关日志下载不再乱码了。