public class PropertiesBinder extends Object
| 构造器和说明 |
|---|
PropertiesBinder(org.springframework.core.env.PropertySources propertySources) |
public PropertiesBinder(org.springframework.core.env.PropertySources propertySources)
public <T> T build(Class<T> targetClass)
targetClass - 目标类型(必须有默认构造函数。如果被@ConfigurationProperties标注,则以注解为准进行属性绑定;否则按照属性前缀为null进行处理)Copyright © 2018 Pivotal Software, Inc.. All rights reserved.