如何在Jersey 2.0中使用guice-servlet? [英] How to use guice-servlet with Jersey 2.0?

查看:104
本文介绍了如何在Jersey 2.0中使用guice-servlet?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有示例代码演示如何在泽西岛2.0版中使用guice-servlet?

Is there any sample code demonstrating how to use guice-servlet with Jersey 2.0?

推荐答案

https://github.com/Squarespace/jersey2-guice 似乎是针对Jersey 2的第一个真正的Guice集成,但它需要版本2.11 +.

https://github.com/Squarespace/jersey2-guice seems to be the first genuine Guice integration for Jersey 2 but it requires version 2.11+.

注意:我还没有测试过,但是这个想法很合理.

NOTE: I haven't tested this, but the idea is sound.

这篇关于如何在Jersey 2.0中使用guice-servlet?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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