重载spring中的PropertyPlaceholderConfigurer,获得加载的属性

今天又重载了PropertyPlaceholderConfigurer,为了把properties中的值拿出来,我重新了processProperties()方法。

获得属性值:

spring 2.x:parseStringValue(props.getProperty(keyStr), props,new HashSet());

spring 3.x: resolvePlaceholder(keyStr, props);

parseStringValue 方法已过时。。。

你可能感兴趣的:(重载spring中的PropertyPlaceholderConfigurer,获得加载的属性)