类 PropertySourcePostProcessor
java.lang.Object
com.iplatform.core.config.enc.PropertySourcePostProcessor
- 所有已实现的接口:
org.springframework.beans.factory.config.BeanFactoryPostProcessor,org.springframework.core.Ordered
public class PropertySourcePostProcessor
extends Object
implements org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.core.Ordered
测试,实现配置文件自动加解密。
1)本来准备使用:jasypt-spring-boot-starter,但由于其依赖的springboot版本是2.7,所以无法使用;
2)考虑到后续springBoot的频繁升级问题要连带修改,所以决定系统内部模仿实现一个简单配置。
- 作者:
- 时克英
-
字段概要
字段从接口继承的字段 org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
构造器概要
构造器构造器说明PropertySourcePostProcessor(org.springframework.core.env.ConfigurableEnvironment environment) -
方法概要
修饰符和类型方法说明intgetOrder()voidpostProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
-
字段详细资料
-
logger
protected final transient org.slf4j.Logger logger
-
-
构造器详细资料
-
PropertySourcePostProcessor
public PropertySourcePostProcessor(org.springframework.core.env.ConfigurableEnvironment environment)
-
-
方法详细资料
-
postProcessBeanFactory
public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) throws org.springframework.beans.BeansException - 指定者:
postProcessBeanFactory在接口中org.springframework.beans.factory.config.BeanFactoryPostProcessor- 抛出:
org.springframework.beans.BeansException
-
getOrder
public int getOrder()- 指定者:
getOrder在接口中org.springframework.core.Ordered
-