0

<bean id="parentTriangle" class="org.kiran.spring.Triangle" abstract="true">
<property name="type">
<list>
    <value>equilateral</value>
    <value>scalene</value>
</list>
</property>
</bean>

<bean id="triangle" class="org.kiran.spring.Triangle" parent="parentTriangle" >
<property name="type">
    <list merge="true">
        <value>isosceles</value>
    </list>
</property>
</bean>

エラーをスローしますそれを機能させるためにヘッダーに何かを追加する必要がありますか?

4

1 に答える 1

1

春の設定は問題ありません。スキーム設定がありません。spring 構成に次のヘッダーがあることを確認します。

<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd ">

于 2012-08-13T15:07:13.207 に答える