1.导入pom
<dependency>
<groupId>org.springframework.ws</groupId>
<artifactId>spring-ws-core</artifactId>
</dependency>
//添加 maven-jaxb2-plugin 插件
<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<version>0.13.1</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<schemaLanguage>WSDL</schemaLanguage>
<generatePackage>com.pay.wsdl</generatePackage>
<schemas>
<schema>
<url>http://localhost:8080/ws/pay.wsdl</url>
</schema>
</schemas>
</configuration>
</plugin>
<