如何在Spring bean配置文件中设置变量?

时间:2015-05-07 23:53:18

标签: xml spring spring-bean

我正在使用我的Spring XML初始化我的spring bean。

<bean class = "com.some.class">
    <property name = "sql" value ="select :id id, 3 weight from some.table"></property>
</bean>

<bean class = "com.some.class">
    <property name = "sql" value = "select :id id, 3 weight from another.table"></property>
</bean>

现在我想在某个地方的xml变量中设置3。我怎样才能做到这一点?

0 个答案:

没有答案
相关问题