【7.6.0】删除ProjectUtil不进行判断前后端分离

pull/55/head
fengshuonan 2023-05-07 09:59:04 +08:00
parent 15960e93d9
commit 3d1bf96aaf
1 changed files with 0 additions and 67 deletions

View File

@ -1,67 +0,0 @@
/*
* Copyright [2020-2030] [https://www.stylefeng.cn]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* GunsAPACHE LICENSE 2.0使
*
* 1.LICENSE
* 2.Guns
* 3.
* 4. https://gitee.com/stylefeng/guns
* 5. https://gitee.com/stylefeng/guns
* 6.
*/
package cn.stylefeng.roses.kernel.rule.util;
import lombok.extern.slf4j.Slf4j;
/**
*
*
* @author fengshuonan
* @since 2021/5/18 10:41
*/
@Slf4j
public class ProjectUtil {
/**
*
*/
public static Boolean SEPARATION_FLAG = null;
/**
* ErrorView
* <p>
* ErrorStaticJsonViewCustomErrorView
*
* @return true-false-
* @author fengshuonan
* @since 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");
SEPARATION_FLAG = true;
return SEPARATION_FLAG;
} catch (ClassNotFoundException e) {
SEPARATION_FLAG = false;
return SEPARATION_FLAG;
}
}
}