shichongfu
2023-06-04 56e5262a6dfe1f338b0bee59a57dc935cd0ffb42
src/main/java/com/product/file/util/PdfConcurrenceUtil.java
@@ -36,7 +36,7 @@
    static {
        SpringMVCContextHolder.getSystemLogger().info("初始化->");
        init();
        //init();
    }
    private PdfConcurrenceUtil() {}
@@ -44,7 +44,7 @@
    /**
     * 初始化转换服务
     */
    public static void init() {
    public static boolean init() {
        SpringMVCContextHolder.getSystemLogger().info("初始化转换服务->");
        openOfficeHome = Global.getSystemConfig("open.office.home","");
        portInfo = Global.getSystemConfig("open.office.port.info","");
@@ -68,6 +68,7 @@
            }
        }
        SpringMVCContextHolder.getSystemLogger().info("当前转换队列中端口数:" + officeManagerQueue.size());
        return true;
    }
    /**
@@ -113,7 +114,6 @@
            officeManager.start();
            return officeManager;
        } catch (OfficeException e) {
           e.printStackTrace();
            SpringMVCContextHolder.getSystemLogger().info(String.format("%s,port:%s", FileCode.NO_EXISTS_TRANSFER_PORT.getText(), port));
            return null;
        }