mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 10:18:42 +08:00 
			
		
		
		
	项目结构调整 x 18 : 解决拆分后的报错
This commit is contained in:
		| @@ -1,18 +1,18 @@ | ||||
| package cn.iocoder.yudao.framework.dict.config; | ||||
| 
 | ||||
| import cn.iocoder.yudao.framework.dict.core.service.DictDataFrameworkService; | ||||
| import cn.iocoder.yudao.framework.dict.core.util.DictUtils; | ||||
| import cn.iocoder.yudao.framework.dict.core.util.DictFrameworkUtils; | ||||
| import org.springframework.context.annotation.Bean; | ||||
| import org.springframework.context.annotation.Configuration; | ||||
| 
 | ||||
| @Configuration | ||||
| public class DictConfiguration { | ||||
| public class YudaoDictAutoConfiguration { | ||||
| 
 | ||||
|     @Bean | ||||
|     @SuppressWarnings("InstantiationOfUtilityClass") | ||||
|     public DictUtils dictUtils(DictDataFrameworkService service) { | ||||
|         DictUtils.init(service); | ||||
|         return new DictUtils(); | ||||
|     public DictFrameworkUtils dictUtils(DictDataFrameworkService service) { | ||||
|         DictFrameworkUtils.init(service); | ||||
|         return new DictFrameworkUtils(); | ||||
|     } | ||||
| 
 | ||||
| } | ||||
| @@ -8,13 +8,13 @@ import lombok.extern.slf4j.Slf4j; | ||||
|  * 字典工具类 | ||||
|  */ | ||||
| @Slf4j | ||||
| public class DictUtils { | ||||
| public class DictFrameworkUtils { | ||||
| 
 | ||||
|     private static DictDataFrameworkService service; | ||||
| 
 | ||||
|     public static void init(DictDataFrameworkService service) { | ||||
|         DictUtils.service = service; | ||||
|         log.info("[init][初始化 DictUtils 成功]"); | ||||
|         DictFrameworkUtils.service = service; | ||||
|         log.info("[init][初始化 DictFrameworkUtils 成功]"); | ||||
|     } | ||||
| 
 | ||||
|     public static DictDataRespDTO getDictDataFromCache(String type, String value) { | ||||
| @@ -1,5 +1,5 @@ | ||||
| /** | ||||
|  * 字典数据模块,提供 {@link cn.iocoder.yudao.framework.dict.core.util.DictUtils} 工具类 | ||||
|  * 字典数据模块,提供 {@link cn.iocoder.yudao.framework.dict.core.util.DictFrameworkUtils} 工具类 | ||||
|  * | ||||
|  * 通过将字典缓存在内存中,保证性能 | ||||
|  */ | ||||
|   | ||||
| @@ -0,0 +1,2 @@ | ||||
| org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ | ||||
|   cn.iocoder.yudao.framework.operatelog.config.YudaoOperateLogAutoConfiguration | ||||
		Reference in New Issue
	
	Block a user
	 YunaiV
					YunaiV