30

rabbitmq template发送的消息中,Date类型字段比当前时间晚8小时-Java技术学习笔记

 4 years ago
source link: https://blog.51cto.com/14528283/2462476
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
前言前一阵开发过程遇到的问题,用的rabbitmqtemplate发送消息,消息body里的时间是比当前时间少了8小时的,这种一看就是时区问题了。就说说为什么出现吧。之前的配置是这样的:@BeanpublicRabbitTemplaterabbitTemplate(ConnectionFactoryconnectionFactory){RabbitTemplatetemplate=newRabbi

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK