| | |
| | | |
| | | @Value("${mpk.bak-file-path}") |
| | | private String mpkBakFilePath; |
| | | @Value("${mpk.mdk-init-path}") |
| | | private String mdkInitPath; |
| | | @Value("${matlab.bak-file-path}") |
| | | private String matlabBakFilePath; |
| | | |
| | |
| | | void init() { |
| | | //加载动态链接库 |
| | | try { |
| | | Properties properties = new Properties(); |
| | | InputStream in = ModelServiceApplication.class.getClassLoader().getResourceAsStream("iailmdk.properties"); |
| | | properties.load(in); |
| | | String mdkInitPath = properties.getProperty("mdk-init-path"); |
| | | log.info("mdkInitPath=" + mdkInitPath); |
| | | File file = new File(mdkInitPath + File.separator + "IAIL.MDK.Mid.Windows.dll"); |
| | | if (!file.exists()) { |