diff --git a/youchain-system/src/main/java/com/youchain/modules/license/LicenseValidate.java b/youchain-system/src/main/java/com/youchain/modules/license/LicenseValidate.java index fea990a..6f5becf 100644 --- a/youchain-system/src/main/java/com/youchain/modules/license/LicenseValidate.java +++ b/youchain-system/src/main/java/com/youchain/modules/license/LicenseValidate.java @@ -23,7 +23,7 @@ public class LicenseValidate { public static void validate() throws Exception{ //读取本地文件 - /*FileProperties properties= SpringContextHolder.getBean(FileProperties.class); + FileProperties properties= SpringContextHolder.getBean(FileProperties.class); log.info(properties.getPath().getPath()); String result=""; try{ @@ -31,7 +31,7 @@ public class LicenseValidate { result = fileReader.readString(); }catch (Exception e){ - throw new BadRequestException("License不存在,请上传License"); +// throw new BadRequestException("License不存在,请上传License"); } log.error(result); @@ -67,7 +67,7 @@ public class LicenseValidate { } }catch (Exception e){ throw new BadRequestException("无效的License,请重新生成"); - }*/ + } }