Skip to content

Commit 227d2bd

Browse files
committed
修正无法设置office转化协议的BUG
1 parent 4ed2032 commit 227d2bd

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

docviewerapi/src/com/log4ic/utils/convert/office/OfficeConverter.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,21 +171,18 @@ public static void startService(){
171171
LOGGER.debug("准备启动服务....");
172172
configuration.setOfficeHome(getOfficeHome());
173173
configuration.setPortNumber(getPort());
174-
officeManager = configuration.buildOfficeManager();
175174
if (CONNECTION_PROTOCOL != null) {
176175
configuration.setConnectionProtocol(CONNECTION_PROTOCOL);
177176
}
178177
if (OFFICE_PROFILE != null) {
179178
configuration.setTemplateProfileDir(OFFICE_PROFILE);
180179
}
180+
officeManager = configuration.buildOfficeManager();
181181
officeManager.start();
182182
LOGGER.debug("office转换服务启动成功!");
183183
} catch (Exception ce) {
184184
LOGGER.error("office转换服务启动失败!详细信息:" + ce);
185-
} finally {
186-
187185
}
188-
189186
}
190187

191188
public static void stopService() {

0 commit comments

Comments
 (0)