public interface PlaceBinder
返回值信息处理.
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Method Summary
static <T> T
bind(org.springframework.core.env.Environment environment,
Class<T> targetClass,
String prefix)
-
Method Details
-
bind
static <T> T bind(org.springframework.core.env.Environment environment,
Class<T> targetClass,
String prefix)
全局资源绑定到指定对象即属性
- Type Parameters:
T - 泛型对象
- Parameters:
environment - 环境配置信息
targetClass - 目标Class对象
prefix - 资源前缀
- Returns:
- the object
-