How to use guice-servlet with Jersey 2.0?

Gili picture Gili · Jun 24, 2013 · Viewed 19k times · Source

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

Answer

Gili picture Gili · Aug 17, 2014

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.