我收到以下错误
javax.xml.ws.soap.SOAPFaultException: Marshalling Error: The https URL hostname does not match the Common Name (CN) on the server certificate. To disable this check (NOT recommended for production) set the CXF client TLS configuration property "disableCNCheck" to true.
Run Code Online (Sandbox Code Playgroud)
当我尝试连接和使用Web服务时.
我在cxf.xml中添加了以下行,但它仍然无效.
<http-conf:conduit name="*.http-conduit">
<!-- deactivate HTTPS url hostname verification (localhost, etc)
WARNING ! disableCNcheck=true should NOT be used in production -->
<http-conf:tlsClientParameters disableCNCheck="true" />
Run Code Online (Sandbox Code Playgroud)
cxf.xml文件位于WEB-INF/classes/CxfService下.
请告诉我这个问题是什么?