在客户端生成代码之后测试出现错误: com.sun.xml.internal.ws.fault.ServerSOAPFaultException: Client received SOAP Faul 我们需要了解在客户端生成代码之后不需要引入任何的CXF的包,报上面的错误一般是调用webService接口提供的方法时, 要么就是serviceImpl没有创建成功, 或者是创建成功了,没有正确的注入. 发现webService的实现类中,忘记注入UserDao,添加之后,就正常了.也就是要正确的注…