public interface PropertiesFilePlugin
| Modifier and Type | Method and Description |
|---|---|
java.util.Map |
getConfigProperties(BaseApplicationContext applicationContext)
直接获取配置属性集合
|
java.lang.String |
getFiles(BaseApplicationContext applicationContext)
返回多个属性配置文件,对应的路径格式为(多个用逗号分隔):
conf/elasticsearch.properties,application.properties,config/application.properties
上述的文件都是在classpath下面即可,如果需要指定绝对路径,格式为:
file:d:/aaa.properties,file:d:/elasticsearch.properties,config/application.properties
说明:带file:前缀表示后面的路径为绝对路径
|
int |
getInitType()
0: 外部自定义配置文件
1:外部自定义属性
-1:采用默认配置文件
|
void |
restore() |
java.lang.String getFiles(BaseApplicationContext applicationContext)
applicationContext - java.util.Map getConfigProperties(BaseApplicationContext applicationContext)
applicationContext - int getInitType()
void restore()