`
cnetwei
  • 浏览: 174438 次
  • 性别: Icon_minigender_1
  • 来自: 西安
社区版块
存档分类
最新评论

CXF在Spring2.5中出现错误,及解决方法。

阅读更多

当在Spring2.5中启用基于标注配置Bean时(即开启以下配置):

  1. < context:annotation-config   />   
  2. < context:component-scan   base-package = "mypackage"   />   

时,CXF启动会出错,好像是BUG:

通过摸索发现在Spring ROOT配置里不要启用基于标注的配置,而在Spring MVC的子上下文配置中启用<context:annotation-config></context:annotation-config>,这样可以达到标注Bean可用,而不影响 cxf的启动。当然采用该方法后,所有的标注Bean都需要从子配置的ApplicationContext中取得。

但我也在想,如果不用SpringMVC(即没有MVC的子上下文)时该怎么办呢??
 

http://www.mail-archive.com/cxf-iss ... @incubator.apache.org/msg04868.html
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics