mirror of
https://github.com/yin5980280/easy.git
synced 2026-06-07 23:08:41 +08:00
【U】修改LOG日志的编码格式
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user