yyyll 发表于 2013-8-20 09:08:55

Bean property 'sessionFactory' is not writable or has an invalid setter method

tomcat启动时候出现的错误原文
Caused by: org.springframework.beans.NotWritablePropertyException:
Invalid property 'sessionFactory' of bean class :
Bean property 'sessionFactory' is not writable or has an invalid setter method.
Does the parameter type of the setter match the return type of the getter?
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:1031)
错误解决
Bean property 'sessionFactory' is not writable or has an invalid setter method
用到HerbernateTemplate的时候,该类需 extends HibernateDaoSupport,就是在DAO类中需要 extends HibernateDaoSupport。

my11502207 发表于 2013-8-21 03:12:02

真是 收益 匪浅

a6266318 发表于 2013-8-21 10:45:43

男人与女人,终究也只是欲望的动物吧!真的可以因为爱而结合吗?对不起,我也不知道。。

sele 发表于 2013-8-22 10:59:56

老天,你让夏天和冬天同房了吧?生出这鬼天气!

yllplay 发表于 2013-8-23 08:32:42

有道理。。。

ab168 发表于 2013-8-25 00:02:57

走自己的路,让别人打车去吧。
页: [1]
查看完整版本: Bean property 'sessionFactory' is not writable or has an invalid setter method