Spring-WS 1.5 可以与 Spring 3 一起使用吗? [英] Can Spring-WS 1.5 be used with Spring 3?

查看:39
本文介绍了Spring-WS 1.5 可以与 Spring 3 一起使用吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Spring-ws 1.5.9 依赖于 Spring 2.5(基于 pom).它可以与 Spring 3 一起使用而不会遇到任何类加载问题.我知道有些包在两者之间匹配,我可以不包括那些 Spring 3 jars 吗?我似乎找不到任何官方说法.

Spring-ws 1.5.9 depends on Spring 2.5 (based on the pom). Can it be used with Spring 3 without running into any classloading issues. I know that some of the packages match between the two, can I just not include those Spring 3 jars? I cant seem to find any official word on this.

推荐答案

官方说,不,它们不兼容.就像你说的,两者之间存在包冲突 - 特别是 org.springframework.oxm.这个包是从 Spring-WS 带入 Spring 3 的,两者会发生冲突.

Officially, no, they're not compatible. Like you said, there are package conflicts between the two - org.springframework.oxm in particular. This package was brought into Spring 3 from Spring-WS, and the two will clash.

本应在 Spring 3.0 发布后立即在 Spring-WS 2.0 上完成工作,但这并没有发生.在此之前,Spring-WS 仍然与当前版本的 Spring Framework 不兼容.

Work was supposed to be completed on Spring-WS 2.0 immediately after Spring 3.0 was released, but this hasn't happened. Until that happens, Spring-WS remains incompatible with the current release of Spring Framework.

在实践中,我发现如果省略 Spring 3 发行版中的 org.springframework.oxm JAR,两者可以很好地协同工作.不过,如果您使用的是 maven,我不确定这是否适合您.

In practise, I've found that if you omit the org.springframework.oxm JAR from the Spring 3 distro, the two work fine together. If you're using maven, though, I'm not sure if this is an option for you.

这篇关于Spring-WS 1.5 可以与 Spring 3 一起使用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆