inspect-server/pom.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
inspect-server/src/main/java/com/yuanchu/mom/service/impl/InsReportServiceImpl.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
inspect-server/pom.xml
@@ -18,12 +18,12 @@ <dependencies> <!--word转pdf--> <!--D:\JavaWork\center-lims-after\inspect-server\src\main\resources\lib--> <!--mvn install:install-file -Dfile=aspose-words-15.12.0-jdk16.jar -DgroupId=com.aspose -DartifactId=aspose-words -Dversion=15.12.0 -Dpackaging=jar--> <dependency> <groupId>com.aspose</groupId> <artifactId>aspose-words</artifactId> <version>15.12.0</version> <scope>system</scope> <systemPath>${project.basedir}/src/main/resources/lib/aspose-words-15.12.0-jdk16.jar</systemPath> </dependency> <dependency> inspect-server/src/main/java/com/yuanchu/mom/service/impl/InsReportServiceImpl.java
@@ -223,6 +223,18 @@ try { //凭证 不然切换后有水印 // InputStream inputStream = this.getClass().getResourceAsStream("/lib/license.xml"); /*String url; try { InputStream inputStream = this.getClass().getResourceAsStream("/lib/license.xml"); File file = File.createTempFile("temp", ".tmp"); OutputStream outputStream = new FileOutputStream(file); IOUtils.copy(inputStream, outputStream); url = file.getAbsolutePath(); } catch (FileNotFoundException e) { throw new ErrorException("找不到模板文件"); } catch (IOException e) { throw new RuntimeException(e); }*/ InputStream is = new ClassPathResource("/lib/license.xml").getInputStream(); License license = new License(); license.setLicense(is);