Cannot create a secure XMLInputFactory --CXF调用出错

在调用方法前加上下面三句即可调用成功:

Properties props = System.getProperties();

props.setProperty("org.apache.cxf.stax.allowInsecureParser", "1");

props.setProperty("UseSunHttpHandler", "true");

参考地址:https://blog.csdn.net/bidelinqi12/article/details/57079926

猜你喜欢

转载自www.cnblogs.com/stormy/p/9198989.html