You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2019/12/06 11:15:30 UTC

[GitHub] [rocketmq-spring] makainb opened a new issue #194: 添加了rocketmq-starter后,rocketmq覆盖了jackson的自动装配,造成无法解析

makainb opened a new issue #194: 添加了rocketmq-starter后,rocketmq覆盖了jackson的自动装配,造成无法解析
URL: https://github.com/apache/rocketmq-spring/issues/194
 
 
   1.问题描述
   POM 添加了rocketmq starter的 依赖
   Controller层无法解析LocalDatetime等Java8的日期API
   
   2.问题造成原因:
   `RocketMQAutoConfiguration` 类引入 `JacksonFallbackConfiguration`  ,`JacksonFallbackConfiguration`的`rocketMQMessageObjectMapper`方法覆盖了SpringBootMessageConverter的ObjectMapper,由于jackson的ObjectMapper自动装配了JavaTimeModule,新new的没有装配,造成无法解析java8的时间
   
   3.解决方案:
   删除`JacksonFallbackConfiguration`类
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services