web模块调用dll依赖库方式修改

This commit is contained in:
qiaoqinzheng 2024-02-21 10:37:20 +08:00
parent 674734bfc5
commit 463ab4a058
2 changed files with 3 additions and 3 deletions

View File

@ -147,8 +147,6 @@ public class GardsSampleDataWebServiceImpl extends ServiceImpl<GardsSampleDataWe
if (StringUtils.isNotBlank(filePath)) { if (StringUtils.isNotBlank(filePath)) {
file = ftpUtil.downloadFile(ftpUtil.getFtpRootPath() + spectrumPathProperties.getSaveFilePath() + StringPool.SLASH + filePath, "betaGamma"); file = ftpUtil.downloadFile(ftpUtil.getFtpRootPath() + spectrumPathProperties.getSaveFilePath() + StringPool.SLASH + filePath, "betaGamma");
if (Objects.nonNull(file)) { if (Objects.nonNull(file)) {
// System.load("/usr/local/jdk/lib/libReadPHDFile.so");
System.loadLibrary("ReadPHDFile");
EnergySpectrumStruct sourceData = EnergySpectrumHandler.getSourceData(file.getAbsolutePath()); EnergySpectrumStruct sourceData = EnergySpectrumHandler.getSourceData(file.getAbsolutePath());
//查询info //查询info
this.findInfo(sampleId, report); this.findInfo(sampleId, report);

View File

@ -41,6 +41,8 @@ public class JeecgWebStatisticsApplication extends SpringBootServletInitializer
@Override @Override
public void run(String... args) throws Exception { public void run(String... args) throws Exception {
//windows环境调用dll
System.loadLibrary("ReadPHDFile");
//System.load("/usr/local/jdk/lib/libReadPHDFile.so");
} }
} }