我有一个类
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一样绑定我的资源文件