简体   繁体   English

与泽西和杰克逊的Netbeans 8.0.2项目

[英]Netbeans 8.0.2 project with Jersey and Jackson

I have a Netbeans project in 8.0.2. 我在8.0.2中有一个Netbeans项目。 For various reasons, I am not using Maven. 由于各种原因,我没有使用Maven。

I have some REST resource methods that return Map and some that return a complex POJO. 我有一些返回Map的REST资源方法和一些返回复杂POJO的方法。 These are to be converted to JSON. 这些将转换为JSON。

From reading around, I gather that the Moxy default plugin cannot stream these to JSON and I would be better off using Jackson. 通过阅读,我认为Moxy默认插件无法将这些插件传输到JSON,我最好使用Jackson。

My question is: What are the various Jackson jars that I require ? 我的问题是:我需要的各种杰克逊罐子是什么? Where do I get those from ? 我从哪里获得这些? Remember, I am not using Maven, so I can't just add a dependency in pom.xml to jersey-media-json-jackson and be done with it. 记住,我没有使用Maven,所以我不能只在pom.xml中添加一个依赖关系到jersey-media-json-jackson并完成它。

You can manually download the various Jackson release JARs from Maven Central via GitHub ; 您可以通过GitHub从Maven Central手动下载各种Jackson发行版JAR; see the projects' respective Downloads page. 查看项目的相应下载页面。 Since you're not using dependency management you'll need to manually ensure that all of Jackson's dependencies are satisfied (have fun!). 由于您没有使用依赖关系管理,因此您需要手动确保所有Jackson的依赖关系都得到满足(玩得开心!)。

You'll need at least 至少需要

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM