public final class PropertyUtil extends Object
| Constructor and Description |
|---|
PropertyUtil() |
| Modifier and Type | Method and Description |
|---|---|
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 <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 © 2019 The Apache Software Foundation. All rights reserved.