启动包增加环境判断,如果是windows环境加载dll依赖库,如果是linux加载so文件
This commit is contained in:
parent
f89a0ec089
commit
f2b3f058e6
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user