springboot配置mybatis-plus数据库加密启动报错

参考来源

报错提示

Failed to bind properties under 'spring.datasource.dynamic.datasource.mastermgr.password' to java.lang.String:

Reason: either 'jasypt.encryptor.password' or one of ['jasypt.encryptor.privateKeyString', 'jasypt.encryptor.privateKeyLocation'] must be provided for Password-based or Asymmetric encryption

解决:
springboot的配置文件application.yml加上这些配置
jasypt:
encryptor:
password: G0CvDz7oJn6

 

 

 
posted @ 2022-03-14 16:41  E_lian  阅读(3837)  评论(0编辑  收藏  举报