微服务基础模块:1、数据库、redis账号密码解密配置类注入方式修改;2、elasticsearch支持账号密码解密、支持https;

This commit is contained in:
gaoqr
2024-09-04 16:05:20 +08:00
parent 5264991a3c
commit 7cac04e95e
8 changed files with 217 additions and 35 deletions
@@ -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();