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即可
Error creating bean with name 'org.apache.cxf.spring.boot.autoconfigure.CxfAutoConfiguration
原文地址:https://www.cnblogs.com/thymeleaf/p/11321712.html
时间: 2024-10-10 23:37:09