标签:group 依赖 原创 sdn detail version end dep pen
今天用springboot写了个webservice的接口
启动项目后报错class not found EmbeddedServletContainerAutoConfiguration
然后看了下pom.xml文件中的依赖如下:
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.5.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<!-- CXF webservice -->
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-spring-boot-starter-jaxws</artifactId>
<version>3.1.16</version>
</dependency>
<!-- CXF webservice -->
然后将org.apache.cxf的依赖版本改到3.2.6,重新编译就好了
<!-- CXF webservice -->
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-spring-boot-starter-jaxws</artifactId>
<version>3.2.6</version>
</dependency>
<!-- CXF webservice -->
————————————————
版权声明:本文为CSDN博主「w13342233769」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/w13342233769/java/article/details/105038890
spring boot 2.0类找不到EmbeddedServletContainerInitializedEvent
标签:group 依赖 原创 sdn detail version end dep pen
原文地址:https://www.cnblogs.com/telwanggs/p/13099020.html