类 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的频繁升级问题要连带修改,所以决定系统内部模仿实现一个简单配置。
 
作者:
时克英
  • 字段详细资料

    • 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