Jersey 2.x Custom Injection annotation NULL
问题 I'm following the 22.1. Implementing Custom Injection Provider paragraph https://jersey.java.net/documentation/latest/user-guide.html#deployment I defined my classes as below: public class PrincipalConfig extends ResourceConfig { public PrincipalConfig() { packages("com.vex.klopotest.secured,com.klopotek.klas.auth.injection"); register(new MyBinder()); } } Where MyBinder is : Public class MyBinder extends AbstractBinder implements Factory<KasPrincipal> { @Override protected void configure() {