使用外部数据源数据库连接中配置如下:
[ { "url":"jdbc:mysql://192.168.0.1:3306/xxxx?useunicode=true&characterencoding=utf-8&servertimezone=utc", "username" : "admin", "password" :"123456", "driverclassname" : "com.mysql.cj.jdbc.driver", "includes": [], "excludes": [], "enable" : true } ]
处于安全的需要现在把password 改为密文存储.
在服务器控制台中输入命令:
ctl -en 123456
复制出 (encrypt:p9hohqr_sj0) 写入配置文件中
[ { "url":"jdbc:mysql://192.168.0.1:3306/xxxx?useunicode=true&characterencoding=utf-8&servertimezone=utc", "username" : "admin", "password" :"(encrypt:p9hohqr_sj0)", "driverclassname" : "com.mysql.cj.jdbc.driver", "includes": [], "excludes": [], "enable" : true } ]
这样就完成配置文件密码使用密文配置。
联系顾问