From 2158d2c1a531ef712be2836902958c5e542e1f4b Mon Sep 17 00:00:00 2001 From: cuilei <ray_tsu1@163.com> Date: 星期一, 18 八月 2025 18:02:54 +0800 Subject: [PATCH] 规范mes包下接口的请求前缀 --- pom.xml | 36 +++++++++++++++++++++++++++++++----- 1 files changed, 31 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 559fb4f..060cc41 100644 --- a/pom.xml +++ b/pom.xml @@ -227,11 +227,11 @@ <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> @@ -582,6 +582,32 @@ </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> -- Gitblit v1.9.3