Search code examples
javaspringdependency-injectionjerseyhk2

Jersey 2.26 and Spring 4.3.10 but no HK2


Is it possible to configure Jersey 2.26.x that it solely depends on Spring for injection instead of HK2? I know Jersey is nowadays compatible with Spring, but is it also possible to get completely rid of HK2?


Solution

  • No it isn't. Jersey uses many special features of hk2 (such as good integration with Spring and Guice) in order to function