ConversionServiceFactoryBean error in spring-config.xml file

I am using this bean in an application of mine.
The application runs fine but the compiler produces a warning when I am trying to use the list tag :

<bean id="conversionService" >
        <property name="converters">
            <list>
                <bean />
            </list>
        </property>
    </bean>
3 comments

Why do you want to use <list> for property "converters" which is a Set? Just use <set> instead?


0

I replaced list tag with set tag and it works again, without the compiler warnings.
The list tag is the tag that is being used by the author of a book I am reading (Pro Spring 3 from Apress).

0

Please sign in to leave a comment.