【U】修改LOG日志的编码格式

This commit is contained in:
殷林
2021-03-17 14:02:12 +08:00
parent a4df1b73bf
commit bc7e19fbeb
2 changed files with 3 additions and 12 deletions

View File

@@ -108,16 +108,7 @@ public class ResponseWrapper extends HttpServletResponseWrapper {
}
private Charset getResponseCharset() {
String charset = super.getCharacterEncoding();
if (null == charset) {
//没有取到contentType使用默认编码
return DEFAULT_CHARSET_OBJ;
}
try {
return Charset.forName(charset);
} catch (Exception e) {
//contentType有问题使用默认编码
return DEFAULT_CHARSET_OBJ;
}
//没有取到contentType使用默认编码
return DEFAULT_CHARSET_OBJ;
}
}

View File

@@ -41,7 +41,7 @@
<profile>
<id>release</id>
<properties>
<revision>1.0.0-RELEASE</revision>
<revision>1.0.3-RELEASE</revision>
</properties>
</profile>
</profiles>