? ? ? ? ? ? ? ? ? ? ? ? 讀取.properties屬性文件的方式
spring框架下:
????1.使用@Value注解讀取.properties文件的屬性內(nèi)容。
????2.使用org.springframework.core.io.support.PropertiesLoaderUtils讀取,
Properties properties = PropertiesLoaderUtils.loadAllProperties("redis-env.properties");
String deviceToken = properties.getProperty("deviceToken.table.name");
String effectTable = properties.getProperty("userEffectList.table.name");