在调用方法前加上下面三句即可调用成功:
Properties props = System.getProperties();
props.setProperty("org.apache.cxf.stax.allowInsecureParser", "1");
props.setProperty("UseSunHttpHandler", "true");
参考地址:https://blog.csdn.net/bidelinqi12/article/details/57079926
本文共 291 字,大约阅读时间需要 1 分钟。
在调用方法前加上下面三句即可调用成功:
Properties props = System.getProperties();
props.setProperty("org.apache.cxf.stax.allowInsecureParser", "1");
props.setProperty("UseSunHttpHandler", "true");
参考地址:https://blog.csdn.net/bidelinqi12/article/details/57079926
转载于:https://www.cnblogs.com/stormy/p/9198989.html