启动包增加环境判断,如果是windows环境加载dll依赖库,如果是linux加载so文件

This commit is contained in:
qiaoqinzheng 2024-02-29 14:12:32 +08:00
parent f89a0ec089
commit f2b3f058e6
3 changed files with 3 additions and 3 deletions

View File

@ -69,7 +69,7 @@ public class JeecgAutoProcessApplication extends SpringBootServletInitializer im
@Override
public void run(String... args) throws Exception {
String os = System.getProperty("os.name").toLowerCase();
if (os.equalsIgnoreCase("win")) {
if (os.contains("win")) {
//Windows加载dll工具库
System.loadLibrary("ReadPHDFile");
System.loadLibrary("GammaAnaly");

View File

@ -63,7 +63,7 @@ public class JeecgSpectrumAnalysisApplication extends SpringBootServletInitializ
@Override
public void run(String... args) throws Exception {
String os = System.getProperty("os.name").toLowerCase();
if (os.equalsIgnoreCase("win")) {
if (os.contains("win")) {
//Windows加载dll工具库
System.loadLibrary("ReadPHDFile");
System.loadLibrary("GammaAnaly");

View File

@ -42,7 +42,7 @@ public class JeecgWebStatisticsApplication extends SpringBootServletInitializer
@Override
public void run(String... args) throws Exception {
String os = System.getProperty("os.name").toLowerCase();
if (os.equalsIgnoreCase("win")) {
if (os.contains("win")) {
//Windows加载dll工具库
System.loadLibrary("ReadPHDFile");
} else {