| | |
| | | |
| | | static { |
| | | SpringMVCContextHolder.getSystemLogger().info("初始化->"); |
| | | init(); |
| | | //init(); |
| | | } |
| | | |
| | | private PdfConcurrenceUtil() {} |
| | |
| | | /** |
| | | * 初始化转换服务 |
| | | */ |
| | | public static void init() { |
| | | public static boolean init() { |
| | | SpringMVCContextHolder.getSystemLogger().info("初始化转换服务->"); |
| | | openOfficeHome = Global.getSystemConfig("open.office.home",""); |
| | | portInfo = Global.getSystemConfig("open.office.port.info",""); |
| | |
| | | } |
| | | } |
| | | SpringMVCContextHolder.getSystemLogger().info("当前转换队列中端口数:" + officeManagerQueue.size()); |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | |
| | | 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; |
| | | } |