}
return null;
}
public static void startService(){
DefaultOfficeManagerConfiguration configuration = new DefaultOfficeManagerConfiguration();
try {
LOGGER.debug("准备启动服务....");
configuration.setOfficeHome(getOfficeHome());
configuration.setPortNumbers(getPort());
configuration.setTaskExecutionTimeout(1000 * 60 * 5L);
configuration.setTaskQueueTimeout(1000 * 60 * 60 * 24L);
if (CONNECTION_PROTOCOL != null) {
configuration.setConnectionProtocol(CONNECTION_PROTOCOL);
}
if (OFFICE_PROFILE != null) {
configuration.setTemplateProfileDir(OFFICE_PROFILE);
}
officeManager = configuration.buildOfficeManager();
officeManager.start();
LOGGER.debug("office转换服务启动成功!");
} catch (Exception ce) {
LOGGER.error("office转换服务启动失败!详细信息:" + ce);
}