我只想使用Spring Boot加密测试中的配置文件application.yml,如下所示:
test:
Host:'demo.com
port:41235
secure:true
service:encryption
dev:
Host:'demoa.com
port:2542
secure:true
service:encryption
prod:
Host:'demob.com
port:4958
secure:true
service:encryption
我想分别对测试数据进行加密,并使用spring boot分别对dev和prod进行加密。我在这里有spring boot的配置文件:
@Configuration
@EnableConfigurationProperties
@ConfigurationProperties
public class YamlConfig
{
private String host;
private int port;
private boolean secure;
private String service;
//getter and setter
}
我想使用aes256加密算法,所以请帮帮我。