chore: 优化部分代码

This commit is contained in:
2024-06-05 19:45:09 +08:00
parent cc079e8bf4
commit 5cd6af8e7b
14 changed files with 13 additions and 16 deletions

View File

@@ -53,7 +53,7 @@ import java.util.Map;
*/
@AutoConfiguration
@EnableConfigurationProperties(PasswordEncoderProperties.class)
@ConditionalOnProperty(prefix = PropertiesConstants.PASSWORD, name = PropertiesConstants.ENABLED, havingValue = "true")
@ConditionalOnProperty(prefix = PropertiesConstants.PASSWORD, name = PropertiesConstants.ENABLED, matchIfMissing = true)
public class PasswordEncoderAutoConfiguration {
private static final Logger log = LoggerFactory.getLogger(PasswordEncoderAutoConfiguration.class);

View File

@@ -31,7 +31,7 @@ public class PasswordEncoderProperties {
/**
* 是否启用密码编解码配置
*/
private boolean enabled = false;
private boolean enabled = true;
/**
* 默认启用的编码器 ID默认BCryptPasswordEncoder