public final class PropertyUtil extends Object
| 构造器和说明 |
|---|
PropertyUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
containPropertyPrefix(org.springframework.core.env.Environment environment,
String prefix)
Whether environment contain properties with specified prefix.
|
static <T> T |
handle(org.springframework.core.env.Environment environment,
String prefix,
Class<T> targetClass)
Spring Boot 1.x is compatible with Spring Boot 2.x by Using Java Reflect.
|
public static boolean containPropertyPrefix(org.springframework.core.env.Environment environment,
String prefix)
environment - the environment contextprefix - the prefix part of property keypublic static <T> T handle(org.springframework.core.env.Environment environment,
String prefix,
Class<T> targetClass)
T - : refer to @param targetClassenvironment - : the environment contextprefix - : the prefix part of property keytargetClass - : the target class type of resultCopyright © 2020 The Apache Software Foundation. All rights reserved.