參考:https://www.liangzl.com/get-article-detail-12711.html
https://www.cnblogs.com/e206842/p/9047294.html
https://blog.csdn.net/itdragons/article/details/75390756
https://blog.csdn.net/zzhuan_1/article/details/84499188
推薦動態調用,不要生成類那種,不靈活
上面紅色部分結合起來使用,可以避免xml命名空間寫死的問題,真正的動態調用
springboot整合的pom有時不匹配當前版本會報錯,需多試幾次,不行就直接引入下列pom即可
<dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-frontend-jaxws</artifactId> <version>3.1.10</version> </dependency> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId> <version>3.1.10</version> </dependency>