public class PropertyUtil extends Object
Constructor and Description |
---|
PropertyUtil() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
handle(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(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 © 2018. All rights reserved.