在春季启动时更改此插件生成的package-info.java文件
object?.function()
我收到此异常,从某种意义上来说,我们不能为SOAP Xml类更改package-info.java文件。
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<version>0.13.2</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<generatePackage>com.example.demo.schemas.eligibility.test</generatePackage>
<generateDirectory>${project.basedir}/src/main/java</generateDirectory>
<schemaDirectory>${project.basedir}/src/main/resources/wsdl</schemaDirectory>
<schemaIncludes>
<include>*.wsdl</include>
</schemaIncludes>
</configuration>
</plugin>
那么我们可以在从wsdl文件生成Java类的同时更改插件jaxb2生成的package-info.java文件吗? 还是这个例外告诉了其他事情?
这是我的package-info.java文件
org.springframework.ws.soap.client.SoapFaultClientException: BIP3113E: Exception detected in message flow gen.CRMEligibilityGS.SOAP Input (broker PTCLDEVBK01)
at org.springframework.ws.soap.client.core.SoapFaultMessageResolver.resolveFault(SoapFaultMessageResolver.java:38) ~[spring-ws-core-3.0.7.RELEASE.jar:na]
at org.springframework.ws.client.core.WebServiceTemplate.handleFault(WebServiceTemplate.java:830) ~[spring-ws-core-3.0.7.RELEASE.jar:na]
at org.springframework.ws.client.core.WebServiceTemplate.doSendAndReceive(WebServiceTemplate.java:624) ~[spring-ws-core-3.0.7.RELEASE.jar:na]
at org.springframework.ws.client.core.WebServiceTemplate.sendAndReceive(WebServiceTemplate.java:555) ~[spring-ws-core-3.0.7.RELEASE.jar:na]
at org.springframework.ws.client.core.WebServiceTemplate.marshalSendAndReceive(WebServiceTemplate.java:390) ~[spring-ws-core-3.0.7.RELEASE.jar:na]
at org.springframework.ws.client.core.WebServiceTemplate.marshalSendAndReceive(WebServiceTemplate.java:378) ~[spring-ws-core-3.0.7.RELEASE.jar:na]
at com.example.demo.config.SOAPConnector.callWebService(SOAPConnector.java:8) ~[classes/:na]
at com.example.demo.client.SoapClient.getcustmoerEligibilityResponse(SoapClient.java:25) ~[classes/:na]
at com.example.demo.EligibilityRestController.getcountryDetails(EligibilityRestController.java:31) ~[classes/:na]
at sun.reflect.NativeMethodaccessorImpl.invoke0(Native Method) ~[na:1.8.0_181]
at sun.reflect.NativeMethodaccessorImpl.invoke(NativeMethodaccessorImpl.java:62) ~[na:1.8.0_181]
at sun.reflect.DelegatingMethodaccessorImpl.invoke(DelegatingMethodaccessorImpl.java:43) ~[na:1.8.0_181]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_181]
在Spring Boot 2.1.4.RELEASE中使用Java 8
客户端类代码
@javax.xml.bind.annotation.XmlSchema(namespace = "http://CRMEligibilityGS")
package com.example.demo.schemas.eligibility.test;