加密解密相关-jasypt
程序员文章站
2024-03-14 14:25:04
...
加密解密相关-jasypt
引入和配置
配置pom.xml
<dependency>
<groupId>com.github.ulisesbocchio</groupId>
<artifactId>jasypt-spring-boot-starter</artifactId>
<version>3.0.3</version>
</dependency>
<dependency>
<groupId>com.github.ulisesbocchio</groupId>
<artifactId>jasypt-spring-boot</artifactId>
<version>3.0.3</version>
</dependency>
<dependency>
<groupId>org.jasypt</groupId>
<artifactId>jasypt</artifactId>
<version>1.9.3</version>
</dependency>
配置application.properties
#配置jasypt密码
jasypt.encryptor.password=root
上一篇: JAVA字符串压缩解压缩方法