我有一个类
public class B{
string color;
string tea;
//get/set
... ...
}
一个资源文件
color=green
tea=longjingspring配置文件
<bean id="b" class="x.x.B">
<property name="color">
<value>${color}</value>
</property>
<property name="tea">
<value>${tea}</value>
</property>
</bean>资源文件的加载是不是spring也有一个类呀!像org.springframework.beans.factory.config.PropertyPlaceholderConfigurer一样绑定我的资源文件
public class B{
string color;
string tea;
//get/set
... ...
}
一个资源文件
color=green
tea=longjingspring配置文件
<bean id="b" class="x.x.B">
<property name="color">
<value>${color}</value>
</property>
<property name="tea">
<value>${tea}</value>
</property>
</bean>资源文件的加载是不是spring也有一个类呀!像org.springframework.beans.factory.config.PropertyPlaceholderConfigurer一样绑定我的资源文件
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货