java spring hibernate运行报错 50
我用bean中注入sessionfactory,通过datasoure。两个错误:(1)Errorcreatingbeanwithname'ss'definedincla...
我用bean中注入sessionfactory,通过datasoure。
两个错误:(1)Error creating bean with name 'ss' defined in class path resource [applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'name' of bean class [com.domain.ss]: Bean property 'name' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
(2)
配置的applicationContext.xml如下:
Invalid property 'name' of bean class [com.domain.ss]: Bean property 'name' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter? 展开
两个错误:(1)Error creating bean with name 'ss' defined in class path resource [applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'name' of bean class [com.domain.ss]: Bean property 'name' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
(2)
配置的applicationContext.xml如下:
Invalid property 'name' of bean class [com.domain.ss]: Bean property 'name' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter? 展开
3个回答
展开全部
看看你的属性的get和set方法有没有写错
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询