Linux下集成OpenOffice

This commit is contained in:
陈精华
2019-04-16 13:48:57 +08:00
committed by kl
parent 6dc10e8df4
commit 0db6b23bf7
7 changed files with 68 additions and 49 deletions

View File

@ -1,13 +1,12 @@
package cn.keking.config;
import cn.keking.utils.HomePathUtils;
import org.artofsolving.jodconverter.office.OfficeUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.Properties;
@ -38,7 +37,7 @@ public class ConfigRefreshComponent {
String convertedFileCharset;
String[] textArray ;
String[] mediaArray;
String homePath = HomePathUtils.getHomePath();
String homePath = OfficeUtils.getHomePath();
String separator = java.io.File.separator;
String configFilePath = homePath + separator + "conf" + separator + "application.properties";
while (true) {