配置文件数据库和redis账号密码加密
This commit is contained in:
parent
98f6d42010
commit
750e82af79
|
|
@ -25,12 +25,6 @@ public class SgzbGatewayApplication implements CommandLineRunner {
|
||||||
private StringEncryptor encryptor;
|
private StringEncryptor encryptor;
|
||||||
@Override
|
@Override
|
||||||
public void run(String... args) throws Exception {
|
public void run(String... args) throws Exception {
|
||||||
String mysqlNm = encrypt("root" );
|
|
||||||
String mysqlPs = encrypt("Bonus@admin123!" );
|
|
||||||
String redis = encrypt("Dszbns@Redis123!" );
|
|
||||||
System.err.println( "mysqlNm原始明文密码加密后的结果为:" + mysqlNm );
|
|
||||||
System.err.println( "mysqlPs原始明文密码加密后的结果为:" + mysqlPs );
|
|
||||||
System.err.println( "redis原始明文密码加密后的结果为:" + redis );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue