解决方案: 使用java8新的api ,但是java8的datetimeformatter.ofpatten 也会出现这个问题 转载于:https://blog.51cto.com/golearning/2087815