Where did JSONConfiguration go in Jersey 2.5.x?

前端 未结 1 1441
情话喂你
情话喂你 2021-01-15 06:06

I\'m porting some server code from jersey 1.1 version to 2.5.1 and I can\'t seem to find JSONConfiguration.

Is JAXB context resolver no longer part of Jersey 2.5 o

相关标签:
1条回答
  • 2021-01-15 06:45

    This was a dumb question.. I'll answer it in case others are under pressure to complete a port..

    The Jersey/Jackson ContextResovler using JAXBContext has been removed. The new model for the ContextResovler uses the ObjectMapper.

    For an example see the ObjectMapperProvider in the Jersey examples directory.

    0 讨论(0)
提交回复
热议问题