mirror of
				https://github.com/continew-org/continew-starter.git
				synced 2025-11-04 09:01:40 +08:00 
			
		
		
		
	chore: 优化属性前缀命名
This commit is contained in:
		@@ -36,7 +36,7 @@ import top.continew.starter.security.crypto.core.MyBatisEncryptInterceptor;
 | 
			
		||||
 */
 | 
			
		||||
@AutoConfiguration
 | 
			
		||||
@EnableConfigurationProperties(CryptoProperties.class)
 | 
			
		||||
@ConditionalOnProperty(prefix = PropertiesConstants.CRYPTO, name = PropertiesConstants.ENABLED, matchIfMissing = true)
 | 
			
		||||
@ConditionalOnProperty(prefix = PropertiesConstants.SECURITY_CRYPTO, name = PropertiesConstants.ENABLED, matchIfMissing = true)
 | 
			
		||||
public class CryptoAutoConfiguration {
 | 
			
		||||
 | 
			
		||||
    private static final Logger log = LoggerFactory.getLogger(CryptoAutoConfiguration.class);
 | 
			
		||||
 
 | 
			
		||||
@@ -25,7 +25,7 @@ import top.continew.starter.core.constant.PropertiesConstants;
 | 
			
		||||
 * @author Charles7c
 | 
			
		||||
 * @since 1.4.0
 | 
			
		||||
 */
 | 
			
		||||
@ConfigurationProperties(PropertiesConstants.CRYPTO)
 | 
			
		||||
@ConfigurationProperties(PropertiesConstants.SECURITY_CRYPTO)
 | 
			
		||||
public class CryptoProperties {
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
 
 | 
			
		||||
@@ -65,7 +65,7 @@ public abstract class AbstractMyBatisInterceptor implements Interceptor {
 | 
			
		||||
     */
 | 
			
		||||
    public Map<String, FieldEncrypt> getEncryptParams(String mappedStatementId, Integer parameterIndex) {
 | 
			
		||||
        return ENCRYPT_PARAM_CACHE
 | 
			
		||||
            .computeIfAbsent(mappedStatementId, m -> getEncryptParamsNoCached(mappedStatementId, parameterIndex));
 | 
			
		||||
            .computeIfAbsent(mappedStatementId, key -> getEncryptParamsNoCached(mappedStatementId, parameterIndex));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user