文件名从 Source/UBCS/ubcs-common/src/main/java/com/vci/ubcs/common/config/NacosConfig.java 修改 |
| | |
| | | package com.vci.ubcs.common.config; |
| | | package com.vci.ubcs.system.config; |
| | | |
| | | /*import org.springblade.core.cache.utils.CacheUtil; |
| | | import org.springblade.core.cache.utils.CacheUtil; |
| | | import org.springblade.core.secure.BladeUser; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springframework.data.redis.core.RedisTemplate;*/ |
| | | import org.springframework.data.redis.core.RedisTemplate; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.cloud.context.config.annotation.RefreshScope; |
| | | import org.springframework.core.env.Environment; |
| | |
| | | |
| | | @PostConstruct |
| | | public void init() { |
| | | /*BladeUser adminUser = new BladeUser(); |
| | | BladeUser adminUser = new BladeUser(); |
| | | adminUser.setTenantId(environment.getProperty("user-info.tenant-id", "000000")); |
| | | adminUser.setUserName(environment.getProperty("user-info.user-name","admin")); |
| | | adminUser.setUserId(Func.toLong(environment.getProperty("user-info.id","0"))); |
| | | CacheUtil.getCache(NACOS_CONFIG_CACHE).put(ADMIN_INFO_CODE,adminUser);*/ |
| | | CacheUtil.getCache(NACOS_CONFIG_CACHE).put(ADMIN_INFO_CODE,adminUser); |
| | | } |
| | | |
| | | } |