zoukankan      html  css  js  c++  java
  • PropertyPlaceholderConfigurer

                                                                                                                  BeanFactoryPostProcessor       PriorityOrdered

                                                                                                                                                   |                      |

    PropertyPlaceholderConfigurer  -->  PlaceholderConfigurerSupport  --> PropertyResourceConfigurer  -- > propertiesLoaderSupport 

                                                                     |                            |

                                                                     |                            |

                                                             BeanNameAware   BeanFactoryAware

    1、PropertiesLoaderSupport 有Source[] locations属性,XML配置文件中locations将设置到此属性,设置时将String类型转换为Resource类型

    2、PropertyResourceConfigurer 两个接口 BeanFactoryPostProcessor和priorityOrdered,

    BeanFactoryPostProcessor接口在refresh()中invokeBeanFactoryPostProcessor(BeanFactory)中执行,

    PriorityOrdered保证方法中最先执行BeanFactoryPostProcessor的postProcessorBeanFactory()方法

    3、PropertyPlaceholderConfigurer  可以设置值可以来自 系统参数和配置文件中参数

  • 相关阅读:
    extjs 获取Dom对象
    转: python requests的安装与简单运用
    转: python如何安装pip和easy_installer工具
    转: windows下面安装Python和pip终极教程
    JS Json数据转换
    转:永久解决火狐浏览器出现的flash版本更新问题
    python 字符编码 转换
    opencv输出图片像素值
    Mac中安装tensorflow(转)
    在linux和Mac中访问某个文件夹中所有的文件
  • 原文地址:https://www.cnblogs.com/zhongchang/p/11972451.html
Copyright © 2011-2022 走看看