依賴用的是
<dependency>
<groupId>com.github.ulisesbocchio</groupId>
<artifactId>jasypt-spring-boot-starter</artifactId>
<version>3.0.1</version>
</dependency>
查了相關(guān)資料兰怠,找到的原因是版本升級(jí)導(dǎo)致jasypt的默認(rèn)算法修改了盗胀。
在配置中得加上以下代碼或者使用舊的版本慨亲。
jasypt:
encryptor:
password: xxx
algorithm: PBEWithMD5AndDES
iv-generator-classname: org.jasypt.iv.NoIvGenerator