Solution to error reporting on the client caused by adding fields on the CXF server

To solve this problem, turn off the field verification function

1. Spring framework:

Add the following configuration in the configuration file

   <entry key="set-jaxb-validation-event-handler" value="false"/>

2. Springboot framework:

Add @ endpointproperties annotation on WebService implementation class

        targetNamespace = "",
        serviceName = "demoWebService",
        endpointInterface = "")
@EndpointProperties({@EndpointProperty(key = "set-jaxb-validation-event-handler", value ="false")})
public class FaultOrderWebServiceImpl implements DemoWebService {


Read More: