Inject ResourceConfig instance (not class) into Jersey

If you inject the class (via a servlet parameter) it seems that
Jersey tries to create all the beans for you (and fails). I thought
it was supposed to work (according to the docs), so I'm a bit confused
but the sample now has Spring DI and the tests pass.

Fixes gh-1981
This commit is contained in:
Dave Syer
2014-11-22 17:16:21 +00:00
parent e56a1ba561
commit 9f7bd0cddc
4 changed files with 39 additions and 9 deletions

View File

@@ -18,6 +18,7 @@
</organization>
<properties>
<main.basedir>${basedir}/../..</main.basedir>
<java.version>1.7</java.version>
</properties>
<dependencies>
<dependency>