加解密
This commit is contained in:
parent
800c97fb94
commit
a2776309e4
|
|
@ -25,11 +25,9 @@ public class SgzbGatewayApplication implements CommandLineRunner {
|
|||
private StringEncryptor encryptor;
|
||||
@Override
|
||||
public void run(String... args) throws Exception {
|
||||
String nacos = encrypt("Jjsp@nacos2023" );
|
||||
String mysqlNm = encrypt("root" );
|
||||
String mysqlPs = encrypt("Bonus@admin123!" );
|
||||
String redis = encrypt("Dszbns@Redis123!" );
|
||||
System.err.println( "nacos原始明文密码加密后的结果为:" + nacos );
|
||||
System.err.println( "mysqlNm原始明文密码加密后的结果为:" + mysqlNm );
|
||||
System.err.println( "mysqlPs原始明文密码加密后的结果为:" + mysqlPs );
|
||||
System.err.println( "redis原始明文密码加密后的结果为:" + redis );
|
||||
|
|
|
|||
|
|
@ -25,8 +25,6 @@ spring:
|
|||
nacos:
|
||||
enabled: true
|
||||
nacos:
|
||||
username: nacos
|
||||
password: ENC(gQ6+/ZE1DwP8W8IFKQDEllLgAJIOIZ5CBy334W5W/uCdyCrNosOWVuCzIPsm/ZF9)
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 192.168.0.14:8848
|
||||
|
|
|
|||
Loading…
Reference in New Issue