I assume that you probably have something similar in the Spring XML file:
<bean class="org.springframework.beans.factory.config.CustomEditorConfigurer">
<property name="customEditors">
<map>
<entry key="java.net.SocketAddress">
<bean class="org.apache.mina.integration.beans.InetSocketAddressEditor" />
</entry>
</map>
</property>
</bean>
As stated in the warning, PropertyEditorinstance transfers are out of CustomEditorConfigurerdate. However, use PropertyEditorclass names instead .
Learn more about this at Javadoc forCustomEditorConfigurer .
A simple solution in your case is to use the class name as the value of the map entry instead of the instance InetSocketAddressEditor:
<bean class="org.springframework.beans.factory.config.CustomEditorConfigurer">
<property name="customEditors">
<map>
<entry key="java.net.SocketAddress" value="org.apache.mina.integration.beans.InetSocketAddressEditor" />
</map>
</property>
</bean>
source
share