package com.project.zcustom.config;


import com.project.zcustom.tools.MyStringEncryptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 配置文件加密配置
 * 新增自定义的配置文件
 */
@Configuration
public class JasyptConfig {
    @Bean("jasyptStringEncryptor")
    public MyStringEncryptor jasyptStringEncryptor() {
        return new MyStringEncryptor();
    }
}
