public class PropertiesUtil extends Object
| 构造器和说明 |
|---|
PropertiesUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
fillProperties(Properties props,
Resource resource)
Fill the given properties from the given resource.
|
static Properties |
loadProperties(Resource resource)
Load properties from the given resource.
|
static Map<String,String> |
toMap(Properties props) |
public static Properties loadProperties(Resource resource) throws IOException
resource - the resource to load fromIOException - if loading failedpublic static void fillProperties(Properties props, Resource resource) throws IOException
props - the Properties instance to fillresource - the resource to load fromIOException - if loading failedpublic static Map<String,String> toMap(Properties props)
Copyright © 2019. All rights reserved.