From 78373309947558132321dbb8d9ed182aeb4ad880 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=A8=E5=AD=90=E6=9D=8E=C2=B7De?= Date: Sun, 18 Jul 2021 14:33:55 +0800 Subject: [PATCH] update for authrity scan --- .../runner/ApplicationInitRunner.java | 21 +++++++------------ .../resources/mapper/AccessUserMapper.xml | 5 +++++ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/report-core/src/main/java/com/anjiplus/template/gaea/business/runner/ApplicationInitRunner.java b/report-core/src/main/java/com/anjiplus/template/gaea/business/runner/ApplicationInitRunner.java index f7429028..6beecc71 100644 --- a/report-core/src/main/java/com/anjiplus/template/gaea/business/runner/ApplicationInitRunner.java +++ b/report-core/src/main/java/com/anjiplus/template/gaea/business/runner/ApplicationInitRunner.java @@ -1,26 +1,23 @@ package com.anjiplus.template.gaea.business.runner; -import com.anji.plus.gaea.constant.Enabled; -import com.anji.plus.gaea.init.InitRequestUrlMappings; +import com.anjiplus.template.gaea.business.modules.accessauthority.service.AccessAuthorityService; import com.anjiplus.template.gaea.business.modules.dict.service.GaeaDictService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.ApplicationArguments; import org.springframework.boot.ApplicationRunner; -import java.util.List; - /** - * 启动加载后执行 - * @author lr - * @since 2021-04-08 - */ + * @desc 启动加载器 + * @author WongBin + * @date 2019-02-17 08:50:10.009 + **/ public class ApplicationInitRunner implements ApplicationRunner { @Autowired private GaeaDictService gaeaDictService; @Autowired - private InitRequestUrlMappings initRequestUrlMappings; + private AccessAuthorityService accessAuthorityService; @Override public void run(ApplicationArguments args) throws Exception { @@ -28,9 +25,7 @@ public class ApplicationInitRunner implements ApplicationRunner { //1、数据字典刷新 // gaeaDictService.refreshCache(null); - //获取当前应用中所有的请求信息 - //List requestInfos = initRequestUrlMappings.getRequestInfos(Enabled.YES.getValue()); - - //System.out.println(requestInfos); + //2. 建立url权限拦截体系 + accessAuthorityService.scanGaeaSecurityAuthorities(); } } diff --git a/report-core/src/main/resources/mapper/AccessUserMapper.xml b/report-core/src/main/resources/mapper/AccessUserMapper.xml index bbe77105..9cbb7dcd 100755 --- a/report-core/src/main/resources/mapper/AccessUserMapper.xml +++ b/report-core/src/main/resources/mapper/AccessUserMapper.xml @@ -28,4 +28,9 @@ delete_flag,enable_flag,create_by,create_time,update_by,update_time,version + \ No newline at end of file