Starting from scratch without any previous Jersey 1.x knowledge, I\'m having a hard time understanding how to setup dependency injection in my Jersey 2.0 project.
For me it works without the AbstractBinder
if I include the following dependencies in my web application (running on Tomcat 8.5, Jersey 2.27):
javax.ws.rs
javax.ws.rs-api
2.1
org.glassfish.jersey.containers
jersey-container-servlet
${jersey-version}
org.glassfish.jersey.ext.cdi
jersey-cdi1x
${jersey-version}
org.glassfish.jersey.inject
jersey-hk2
${jersey-version}
It works with CDI 1.2 / CDI 2.0 for me (using Weld 2 / 3 respectively).