spring boot 整合 cxf webservice 创建spring boot工程,增加cxf的依赖 <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-spring-boot-starter-jaxws</artifactId> <version>3.2.4</version> </dependency> 服务端 创建服务接口 @WebService(name = "CommonService", //服务民称 targetNamespace = "http://bb.aa.com" //命名空间 ) public interface CommonService { @WebMethod @WebResult(name = "String", targetNamespace = "") public String sayHello(@WebParam(name = "userName") String name); } 实现接口 @WebService(serviceName = "CommonService", // 与接口中指定的name一致 targetNamespace = "http://bb.aa.com", // 与接口中的命名空间一致,一般是接口的包名倒