TransformerFactory and Xalan Dependency Conflict

后端 未结 6 1733
我寻月下人不归
我寻月下人不归 2021-01-12 21:54

I have the following code:

javax.xml.transform.TransformerFactory factory = TransformerFactory.newInstance();
factory.setAttribute(XMLConstants.ACCESS_EXTERN         


        
6条回答
  •  深忆病人
    2021-01-12 22:56

    Need to set the system-level property as below

    System.setProperty("javax.xml.transform.TransformerFactory","com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl");
    

提交回复
热议问题