cxf-spring-boot-starter

webservice与springboot整合

非 Y 不嫁゛ 提交于 2019-12-02 06:49:52
1、pom.xml <!-- cxf支持 --> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-frontend-jaxws</artifactId> <version>3.1.6</version> </dependency> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId> <version>3.1.6</version> </dependency> 因为项目中使用的springboot版本很老。所以没有使用cxf和springboot整合包 <!-- https://mvnrepository.com/artifact/org.apache.cxf/cxf-spring-boot-starter-jaxws --> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-spring-boot-starter-jaxws</artifactId> <version>3.3.2</version> </dependency> 2、贴代码 webServiceConfig.java