public class PaaSPropertiesLoaderUtils
extends org.springframework.core.io.support.PropertiesLoaderUtils
| Constructor and Description |
|---|
PaaSPropertiesLoaderUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
fillAllProperties(Properties prop,
List<org.springframework.core.io.Resource> resList) |
static Properties |
fillMergedProperties(Properties prop,
String locationPattern) |
static Properties |
loadMergedProperties(String locationPattern)
使用内置规则
输入:/a/b/abc.properties
实际:
1./a/b/abc.properties
2./a/b/abc.[ext].properties
|
public static Properties loadMergedProperties(String locationPattern) throws IOException
locationPattern - locationPatternIOException - Exceptionpublic static Properties fillMergedProperties(Properties prop, String locationPattern) throws IOException
IOExceptionpublic static void fillAllProperties(Properties prop, List<org.springframework.core.io.Resource> resList) throws IOException
IOExceptionCopyright © 2017–2021 The Apache Software Foundation. All rights reserved.