Browse Source

修改导入导出部分bug

宋悦 8 years ago
parent
commit
b03e888d50

+ 1 - 1
cqb-comm-utils/src/main/java/com/qmth/cqb/utils/word/DocxProcessUtil.java

@@ -337,7 +337,7 @@ public final class DocxProcessUtil {
      */
      */
     public static String omml2mml(String omml)throws Exception {
     public static String omml2mml(String omml)throws Exception {
         DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
         DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
-        InputStream stylesheet = ClassLoader.getSystemResourceAsStream(OMML2MML_XSL);
+        InputStream stylesheet = DocxProcessUtil.class.getClassLoader().getSystemResourceAsStream(OMML2MML_XSL);
         StringReader sr = new StringReader(omml);
         StringReader sr = new StringReader(omml);
         InputSource ommldata = new InputSource(sr);
         InputSource ommldata = new InputSource(sr);
         StringWriter writer = new StringWriter();
         StringWriter writer = new StringWriter();