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
将这加到配置文件中就可以解决问题

本文介绍如何在升级jasypt-spring-boot-starter到3.0.4版本后,通过添加特定配置解决数据库用户名解密失败的问题,包括在README.md中的推荐配置示例。
305

被折叠的 条评论
为什么被折叠?



