Loading

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

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指定模式

posted @ 2020-01-13 15:27  摇橙子  阅读(214)  评论(0编辑  收藏  举报