首页 > TAG信息列表 > textEncryptor

spring boot 对配置文件加密

配置文件中的数据库账户、密码不能明文展示。否则代码泄露的话,数据库就被人删除跑路了。 首先引入依赖 <dependency> <groupId>com.github.ulisesbocchio</groupId> <artifactId>jasypt-spring-boot-starter</artifactId> <version>2.1.2</version> </dependency>    编写测