标签:aced svc jdwp dmp dem gpo abr ups asn
<dependency> <groupId>com.github.ulisesbocchio</groupId> <artifactId>jasypt-spring-boot-starter</artifactId> <version>2.1.0</version> </dependency>
package com.hikvision.seclab.common.util.encrypt; import org.jasypt.encryption.pbe.StandardPBEStringEncryptor; /** * 使用jasypt对配置文件进行加密的工具 * @author: 2019/11/7 16:47 * @since: 0.0.1-SNAPSHOT * @modified By: */ public class JasyptTool { public static void main(String[] a){ StandardPBEStringEncryptor se = new StandardPBEStringEncryptor(); se.setPassword("xxx"); String postgres = se.encrypt("abc123"); System.out.println(postgres); } }
spring.datasource.driver-class-name=org.postgresql.Driver spring.datasource.url=jdbc:postgresql: spring.datasource.username=pg_name spring.datasource.password=ENC(t78dKQb1viAT2QKDxxeerdaNm6wyDCJ) spring.datasource.initialization-mode=always
标签:aced svc jdwp dmp dem gpo abr ups asn
原文地址:https://www.cnblogs.com/donfaquir/p/11814127.html