在Spring 4.0中使用Jersey-spring [英] Using Jersey-spring with Spring 4.0
问题描述
根据您的说法,将Spring 4
与jersey-spring3
集成模块一起使用会带来什么风险?
According to you what are the risks of using Spring 4
with the jersey-spring3
integration module?
我尝试将Spring 4.0与 jersey spring示例结合使用和该示例仍然有效,但我无法确定与此用法相关的风险.
I have tried to use Spring 4.0 with the jersey spring example and the example still works but i'm unable to identify risks linked to this usage.
推荐答案
最近我在一个项目中开始使用Jersey 2.7和Spring4.0.x.我已经设置了上下文层次结构来注入Bean,到目前为止,我仅发现
I have started using Jersey 2.7 and Spring 4.0.x recently in a project. I have setup a context hierarchy to inject beans, so far, I have discovered only one limitiation but that does not seem relate to Spring 4 but rather to the module itself or the HK2 Spring Bridge.
提供有关我的用法的更多见解.我有一个XJC/JAXB支持的系统,它由通用服务,存储库使用,并通过JAX-WS(现在希望通过JAX-RS)公开.
To give more insight about my use. I have a XJC/JAXB-backed which is consumed by a common service, repository and exposed through JAX-WS, and now hopefully through JAX-RS.
多上下文内容现在可以与@Autowired
和2.8-SNAPSHOT
一起使用.我已将更改和2.8-SNAPSHOT
应用于2.7
.这是差异.
The multi-context stuff works now with @Autowired
with 2.8-SNAPSHOT
. I have applied my changes and the 2.8-SNAPSHOT
to 2.7
. Here is the diff.
编辑(Michael-O; 2014-10-17):此处是基于2.11的经过修改的Spring模块,具有多上下文支持.
Edit (Michael-O; 2014-10-17): Here is a modified Spring module based off 2.11 with multi-context support.
这篇关于在Spring 4.0中使用Jersey-spring的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!