第 48 章 Jasypt
从 Camel 2.5 开始
Jasypt 是一个简化的加密库,可以轻松地加密和解密。Camel 与 Jasypt 集成,以允许 加密 属性文件中的敏感信息。在类路径上丢弃 camel-jasypt
,这些加密值将自动被 Camel 解密。这样可确保人类眼于不容易发现敏感信息,如用户名和密码。
48.1. 依赖项
当在 Camel Spring Boot 中使用 camel-jasypt
时,请将以下 Maven 依赖项添加到 pom.xml
中,以支持自动配置:
<dependency> <groupId>org.apache.camel.springboot</groupId> <artifactId>camel-jasypt-starter</artifactId> </dependency>