求解决:Cannot convert value of type [java.lang.String] to required type [java.net.SocketAdd 10
Causedby:org.springframework.beans.TypeMismatchException:Failedtoconvertpropertyvalue...
Caused by: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [java.net.SocketAddress] for property 'address'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [java.lang.String] to required type [java.net.SocketAddress] for property 'address': no matching editors or conversion strategy found
at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:391)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1289)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1250)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
MINA配置文件
<bean id="memberXmlBinding" class="org.apache.mina.integration.spring.Binding">
<property name="address" value=":${mina.serverPort}" />
<property name="handler" ref="memberXmlHandler" />
<property name="serviceConfig" ref="memberXmlServerConfig" />
</bean> 展开
at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:391)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1289)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1250)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
MINA配置文件
<bean id="memberXmlBinding" class="org.apache.mina.integration.spring.Binding">
<property name="address" value=":${mina.serverPort}" />
<property name="handler" ref="memberXmlHandler" />
<property name="serviceConfig" ref="memberXmlServerConfig" />
</bean> 展开
3个回答
展开全部
maven+spring data错误有两种解决方法。
spring-jpa-properties-hibernate-hbm2ddl-auto=update
如果是设置成create则是每次启动都创建新表,可能造成数据丢失,如果是create-drop则是关闭时删除表。表格字段中使用了mysql的保留字,如不起眼的”desc”,如果存在字段名称为desc则会自动创建失败,修改字段名就可以了。
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2012-06-08
展开全部
围观
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询