From 5b3901770843cab6ba0e434fdbe3e3302c9ff88e Mon Sep 17 00:00:00 2001 From: 心如止水 <8902735+gaobinbin991314@user.noreply.gitee.com> Date: 星期四, 30 三月 2023 18:50:58 +0800 Subject: [PATCH] !324 系统配置读取方式变更 1、前端登录页面注册开关 对接后端数据库 2、密码最大错误次数与锁定时间转移到数据库 3、短信开关与验证码模板id 转移到数据库参数管理内 --- ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/runner/SystemApplicationRunner.java | 13 ------------- 1 files changed, 0 insertions(+), 13 deletions(-) diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/runner/SystemApplicationRunner.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/runner/SystemApplicationRunner.java index 36ed651..e44cf87 100644 --- a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/runner/SystemApplicationRunner.java +++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/runner/SystemApplicationRunner.java @@ -1,8 +1,5 @@ package com.ruoyi.system.runner; -import com.ruoyi.common.core.config.RuoYiConfig; -import com.ruoyi.system.service.ISysConfigService; -import com.ruoyi.system.service.ISysDictTypeService; import com.ruoyi.system.service.ISysOssConfigService; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; @@ -20,22 +17,12 @@ @Component public class SystemApplicationRunner implements ApplicationRunner { - private final RuoYiConfig ruoyiConfig; - private final ISysConfigService configService; - private final ISysDictTypeService dictTypeService; private final ISysOssConfigService ossConfigService; @Override public void run(ApplicationArguments args) throws Exception { ossConfigService.init(); log.info("鍒濆鍖朞SS閰嶇疆鎴愬姛"); - if (ruoyiConfig.isCacheLazy()) { - return; - } - configService.loadingConfigCache(); - log.info("鍔犺浇鍙傛暟缂撳瓨鏁版嵁鎴愬姛"); - dictTypeService.loadingDictCache(); - log.info("鍔犺浇瀛楀吀缂撳瓨鏁版嵁鎴愬姛"); } } -- Gitblit v1.9.3