小白整合SSH框架出错 望前辈们帮忙

黄贤达 发布于 2017/03/10 11:53
阅读 115
收藏 0

警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext-public.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'dataSource' of bean class [org.springframework.ejb.access.LocalStatelessSessionProxyFactoryBean]: Bean property 'dataSource' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?

错误信息如上,看意思大概和getter,setter方法以及配置文件中Id为dataSource为有关。

配置如下

 

加载中
0
wilbur_li
wilbur_li

  你的url直接写成hib_dome是用什么转换过吗

0
亦可塞艇
亦可塞艇

人生苦短,快用PHP

0
tonysb
tonysb

人生苦短,快用JFinal

返回顶部
顶部