码迷,mamicode.com
首页 > 其他好文 > 详细

IDEA中 tomcat 控制台中文乱码解决 及GsonUtils无法转换时间格式

时间:2020-01-13 16:35:04      阅读:78      评论:0      收藏:0      [点我收藏+]

标签:logging   重启   dea   handle   coding   乱码   模式   转换   log   

IDEA中 tomcat 控制台中文乱码解决

1、找到tomcat 安装目录下的 conf /logging.properties 文件打开

2、将 java.util.logging.ConsoleHandler.encoding = UTF-8

  修改为 java.util.logging.ConsoleHandler.encoding = GBK

3、保存后 重启idea

 
————————————————
GsonUtils需添加时间模式 datePattern指定模式

IDEA中 tomcat 控制台中文乱码解决 及GsonUtils无法转换时间格式

标签:logging   重启   dea   handle   coding   乱码   模式   转换   log   

原文地址:https://www.cnblogs.com/vycz/p/12187497.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!