当前位置:编程学习 > JAVA >>

java报错, 求大神指导,明确方向。解决思路,拜谢了。

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cxf' defined in class path resource [META-INF/cxf/cxf.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'cxf' must be of type [org.apache.cxf.Bus], but was actually of type [org.apache.cxf.bus.spring.SpringBus] --------------------编程问答--------------------  Error creating bean with name 'cxf' defined in class path resource [META-INF/cxf/cxf.xml]:
把这个异常翻译一下,感觉说的挺具体的吧。
具体我不知道什么原因,看异常应该是
cxf这个对象要求为org.apache.cxf.Bus的形式,你定义成了org.apache.cxf.bus.spring.SpringBus的形式。


--------------------编程问答-------------------- 试了试, 貌似不行。 --------------------编程问答-------------------- 有定义为(inner bean)的配置么?这个bean的配置贴出来看看
补充:Java ,  Java相关
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,