Error creating bean with name 'org.apache.cxf.spring.boot.autoconfigure.CxfAutoConfiguration

Error starting Tomcat context. Exception: org.springframework.beans.factory.BeanCreationException. Message: Error creating bean with name 'org.apache.cxf.spring.boot.autoconfigure.CxfAutoConfiguration': Initialization of bean failed; nested exception is java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
换了微服务后,一直报这个错,
最后找到了原因是webservice的这个依赖的版本有冲突
<dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-spring-boot-starter-jaxws</artifactId> <version>3.1.11</version> </dependency>
我们这改为3.2.5即可

posted @ 2020-06-12 13:31  疯子110  阅读(1990)  评论(0编辑  收藏  举报