JSONConfiguration在Jersey 2.5.x中的位置是什么? [英] Where did JSONConfiguration go in Jersey 2.5.x?

查看:82
本文介绍了JSONConfiguration在Jersey 2.5.x中的位置是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将一些服务器代码从jersey 1.1版本移植到2.5.1,我似乎无法找到JSONConfiguration。

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

JAXB上下文解析器不再是Jersey 2.5的一部分还是组ID已更改?是否有其他机制来实现ContextResolver?

Is JAXB context resolver no longer part of Jersey 2.5 or has the group id changed ? Is there another mechanism to implement a ContextResolver ?

请帮忙。

推荐答案

这是一个愚蠢的问题..我会回答它,以防其他人面临完成港口的压力..

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

已删除使用 JAXBContext 的Jersey / Jackson ContextResovler ContextResovler 的新模型使用 ObjectMapper

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

有关示例,请参阅 ObjectMapperProvider

这篇关于JSONConfiguration在Jersey 2.5.x中的位置是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆