私はSpringにかなり慣れていないので、2つのプロパティを持つBeanが必要です。2つ目は最初のプロパティを参照するインラインBeanです。このようなもの:
<bean id="aBean" class="com.sample.Bean">
<property name="propertyOne" value="something" />
<property name="propertyTwo">
<bean class="com.sample.AnotherBean">
<property name="propertyThree" ref="propertyOne />
</bean>
</property>
</bean>
propertyOne
ここでは、独自のBeanを作成することはできません。これを達成するための最良の方法は何でしょうか?ありがとう!