23.1. Dependencies 依赖

使用 Jersey Spring DI,需要添加 jersey-spring3 模块

  1. <dependency>
  2. <groupId>org.glassfish.jersey.ext</groupId>
  3. <artifactId>jersey-spring3</artifactId>
  4. <version>2.15</version>
  5. </dependency>

上述模块不添加任何传递依赖于 Spring 的模块,所以你将需要添加 Spring 3 依赖, 请添加到依赖列表。