无法在最新版本的Wiremock 2.1.1.RELEASE上注册JavaTimeModule

时间:2019-05-26 16:38:07

标签: java spring-boot wiremock

在Spring Cloud Contract Wiremock中»1.1.5.RELEASE版本 当我在Json.getObjectMapper()。registerModule(New JavaTimeModule())中注册Java时间模块时,它将起作用。 在此版本中,我检查了getObjectMapper()的com.fasterxml.jackson.databind.ObjectMapper类型。

在Spring Cloud Contract Wiremock中»2.1.1.RELEASE 当我在Json.getObjectMapper()。registerModule(New JavaTimeModule())中注册Java时间模块时,它不起作用。 在此版本中,我检查了getObjectMapper()的类型是否为Wiremock.com.fasterxml.jackson.databind.ObjectMapper类型。

有人能告诉我为什么存在差异以及如何解决吗?

0 个答案:

没有答案
相关问题