mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-13 05:12:07 +08:00
微服务基础模块:1、数据库、redis账号密码解密配置类注入方式修改;2、elasticsearch支持账号密码解密、支持https;
This commit is contained in:
+1
-1
@@ -20,13 +20,13 @@ import org.springframework.util.StringUtils;
|
||||
* @since 2024/8/27 9:46
|
||||
*/
|
||||
@AutoConfiguration
|
||||
@ConditionalOnProperty(name = "chenfeng.encrypt.enable", havingValue = "true")
|
||||
public class ChenfengRedisEncryptAutoConfiguration {
|
||||
|
||||
@Value("${chenfeng.encrypt.publicKey:}")
|
||||
private String publicKey;
|
||||
|
||||
@Bean
|
||||
@ConditionalOnProperty(name = "chenfeng.encrypt.enable", havingValue = "true")
|
||||
public RedissonAutoConfigurationCustomizer redissonAutoConfigurationCustomizer() {
|
||||
return configuration -> {
|
||||
Config redissonConfig = new Config();
|
||||
|
||||
Reference in New Issue
Block a user