springboot 集成 jasypt
1.引入依赖:
com.github.ulisesbocchio
jasypt-spring-boot-starter
1.14
2.application.properties配置文件中增加如下内容(加解密时使用):
jasypt.encryptor.password=EbfYkitulv73I2p0mXI50JMXoaxZTKJ7
3.在单元测试类中测试
4.需要加密的密码配置
搞定。。。
springboot 集成 jasypt
1.引入依赖:
com.github.ulisesbocchio
jasypt-spring-boot-starter
1.14
2.application.properties配置文件中增加如下内容(加解密时使用):
jasypt.encryptor.password=EbfYkitulv73I2p0mXI50JMXoaxZTKJ7
3.在单元测试类中测试
4.需要加密的密码配置
搞定。。。