2021
02-21
02-21
java 替换docx文件中的字符串方法实现
替换docx文件里面的${}字符串publicclassMain{publicstaticvoidmain(String[]args)throwsException{Stringtemplate="C:\\Users\\lzh\\Desktop\\模板.docx";StringoutSrc="C:\\Users\\lzh\\Desktop\\简历.docx";varis=newFileInputStream(template);varos=newFileOutputStream(outSrc);editDocx(os,is,xml->{Map<String,String>map=newHashMap<>();map.put("$...
继续阅读 >