随便小记
package com.yiba.manage.common.spring.exetend; import org.springframework.beans.BeansException; import org.springframework.beans.factory.config.ConfigurableListableBeanFactory; import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer; import java.util.Properties; public class ExtendedPropertyPlaceholderConfigurer extends PropertyPlaceholderConfigurer { private Properties props; @Override protected void processProperties(ConfigurableListableBeanFactory beanFactory, Properties props) throws BeansException { super.processProperties(beanFactory, props); this.props = props; } public String getProperty(String key) { return props.getProperty(key); } }
莫看众生满脸笑,个中滋味谁人知。待到半夜月满时,退却面具不相识。

浙公网安备 33010602011771号