jasypt-spring-boot-starter:3.0.3以上的版本使用

jasypt-spring-boot-starter:3.0.3以上的版本使用,第1张

jasypt-spring-boot-starter:3.0.3以上的版本使用

jasypt-spring-boot-starter:3.0.3以上的版本使用
  • 关于jasypt-spring-boot-starter:3.0.3及以上的版本的使用

关于jasypt-spring-boot-starter:3.0.3及以上的版本的使用

最近升级jasypt-spring-boot-starter到3.0.4 出现问题
报:

	Failed to bind properties under 'spring.datasource.username' to java.lang.String

这是数据库用户名没有解密导致的,在github上ulisesbocchio 的https://github.com/ulisesbocchio/jasypt-spring-boot 的README.md 中有一条

jasypt:
  encryptor:
    algorithm: PBEWithMD5AndDES
    iv-generator-classname: org.jasypt.iv.NoIvGenerator

将这加到配置文件中就可以解决问题

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5684812.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-17

发表评论

登录后才能评论

评论列表(0条)

保存