【7.0.4】更新ProjectUtil

pull/17/head
fengshuonan 2021-05-18 11:18:15 +08:00
parent 20b3522241
commit 96446cfce5
1 changed files with 13 additions and 2 deletions

View File

@ -35,6 +35,11 @@ import lombok.extern.slf4j.Slf4j;
@Slf4j
public class ProjectUtil {
/**
*
*/
public static Boolean SEPARATION_FLAG = null;
/**
* ErrorView
* <p>
@ -45,11 +50,17 @@ public class ProjectUtil {
* @date 2021/5/18 10:42
*/
public static Boolean getSeparationFlag() {
if (SEPARATION_FLAG != null) {
return SEPARATION_FLAG;
}
try {
Class.forName("cn.stylefeng.roses.kernel.system.integration.ErrorStaticJsonView");
return true;
SEPARATION_FLAG = true;
return SEPARATION_FLAG;
} catch (ClassNotFoundException e) {
return false;
SEPARATION_FLAG = false;
return SEPARATION_FLAG;
}
}