配置文件数据库和redis账号密码加密
This commit is contained in:
parent
b6b23815d5
commit
988e77caba
|
|
@ -25,11 +25,9 @@ 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 nacos = encrypt("Jjsp@nacos2023" );
|
|
||||||
String mysqlNm = encrypt("root" );
|
String mysqlNm = encrypt("root" );
|
||||||
String mysqlPs = encrypt("Bonus@admin123!" );
|
String mysqlPs = encrypt("Bonus@admin123!" );
|
||||||
String redis = encrypt("Dszbns@Redis123!" );
|
String redis = encrypt("Dszbns@Redis123!" );
|
||||||
System.err.println( "nacos原始明文密码加密后的结果为:" + nacos );
|
|
||||||
System.err.println( "mysqlNm原始明文密码加密后的结果为:" + mysqlNm );
|
System.err.println( "mysqlNm原始明文密码加密后的结果为:" + mysqlNm );
|
||||||
System.err.println( "mysqlPs原始明文密码加密后的结果为:" + mysqlPs );
|
System.err.println( "mysqlPs原始明文密码加密后的结果为:" + mysqlPs );
|
||||||
System.err.println( "redis原始明文密码加密后的结果为:" + redis );
|
System.err.println( "redis原始明文密码加密后的结果为:" + redis );
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,6 @@ spring:
|
||||||
nacos:
|
nacos:
|
||||||
enabled: true
|
enabled: true
|
||||||
nacos:
|
nacos:
|
||||||
username: nacos
|
|
||||||
password: ENC(gQ6+/ZE1DwP8W8IFKQDEllLgAJIOIZ5CBy334W5W/uCdyCrNosOWVuCzIPsm/ZF9)
|
|
||||||
discovery:
|
discovery:
|
||||||
# 服务注册地址
|
# 服务注册地址
|
||||||
server-addr: 192.168.0.14:8848
|
server-addr: 192.168.0.14:8848
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue