标签:figure row extend blog merge cto java span port
复制代码 package com.sf.integration.ident.redis; import java.io.IOException; import java.util.Properties; import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer; public class SSSPropertyPlaceholderConfigurer extends PropertyPlaceholderConfigurer { private static Properties props; @Override public Properties mergeProperties() throws IOException { props = super.mergeProperties(); Property.init(props); return props; } } 复制代码 复制代码 package com.sf.integration.ident.redis; public class Property { private static java.util.Properties property; private Property() { } static void init(java.util.Properties props) { property = props; } public static String getProperty(String key) { return property.getProperty(key); } public static String getProperty(String key, String defaultValue) { return property.getProperty(key, defaultValue); } }
标签:figure row extend blog merge cto java span port
原文地址:http://www.cnblogs.com/fubinhnust/p/7397812.html