天天看點

加密解密相關-jasypt引入和配置

加密解密相關-jasypt

  • 引入和配置
    • 配置pom.xml
    • 配置application.properties

引入和配置

配置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