| | |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-starter-web-services</artifactId> |
| | | </dependency> |
| | | <!-- <dependency>--> |
| | | <!-- <groupId>org.apache.cxf</groupId>--> |
| | | <!-- <artifactId>cxf-spring-boot-starter-jaxws</artifactId>--> |
| | | <!-- <version>${cxf.version}</version>--> |
| | | <!-- </dependency>--> |
| | | <dependency> |
| | | <groupId>org.apache.cxf</groupId> |
| | | <artifactId>cxf-spring-boot-starter-jaxws</artifactId> |
| | | <version>${cxf.version}</version> |
| | | </dependency> |
| | | |
| | | <!-- CXF webservice --> |
| | | <dependency> |
| | |
| | | </nonFilteredFileExtensions> |
| | | </configuration> |
| | | </plugin> |
| | | <!-- CXF Codegen Plugin:根据 WSDL 生成 Java 客户端代码 --> |
| | | <plugin> |
| | | <groupId>org.apache.cxf</groupId> |
| | | <artifactId>cxf-codegen-plugin</artifactId> |
| | | <version>3.5.5</version> <!-- 你可以使用最新的稳定版本,比如 3.5.6 / 4.x --> |
| | | <executions> |
| | | <execution> |
| | | <id>generate-sources</id> |
| | | <phase>generate-sources</phase> |
| | | <goals> |
| | | <goal>wsdl2java</goal> |
| | | </goals> |
| | | <configuration> |
| | | <!-- 指定生成的 Java 类 放在哪个目录下(通常是 target/generated-sources/cxf) --> |
| | | <sourceRoot>${project.basedir}/target/generated-sources/cxf</sourceRoot> |
| | | <wsdlOptions> |
| | | <wsdlOption> |
| | | <wsdl>${basedir}/src/main/resources/wsdl/WebService.asmx.wsdl</wsdl> |
| | | <!-- 或者直接使用 WSDL 的网络地址 --> |
| | | <!-- <wsdl>http://10.101.0.182:8002/MesWebService/WebService.asmx?wsdl</wsdl> --> |
| | | </wsdlOption> |
| | | </wsdlOptions> |
| | | </configuration> |
| | | </execution> |
| | | </executions> |
| | | </plugin> |
| | | </plugins> |
| | | <resources> |
| | | <resource> |