org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loginService' defined in ServletContext resource [/WEB-INF/applicationContext-service.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'loginDao' of bean class [sys.service.impl.loginServiceImpl]: Bean property 'loginDao' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?请问这是什么错误呢?我的DAO只是继承了HibernateDaoSupport (public class loginDaoImpl extends HibernateDaoSupport implements loginDao{})还要添加什么方法吗?应该怎么写呢??
解决方案 »
- struts2里面的<s:property>不显示值
- Maven+Spring+Hibernate整合出错,求高手帮帮,留下qq或邮箱我给您发源代码
- 不应该使用数据库的ON DELETE CASCADE?
- webwork2.2在websphere5.1中遇到的一个问题!
- JDOM问题
- 我是新手,刚学ejb,有个问题困扰我几天了,请大家帮帮忙!!
- struts 一个form,两个submit,结果不同action在获取表单表单数据时(debug),发现提示:can not locate requestFacade.java from project cl
- 跑了14个网站都没有下载到CVS,苦哇!各位有没有可用的地址?高分相送,对了,还有在Jbuilder 7下设置Weblogic Server 7时会碰到在Librar
- 7年mm,有结局,撒分,java版每个都有,希望斑竹别删
- JUnit测试不通过
- 请前辈给点意见
- <FCK:editor>赋值问题,继续在线等。
public void setSessionFacotry(SessionFactory sessionFacotry) {
setSessionFactory(sessionFacotry);
}可是还报上面那个错误呀?!
楼主 貌似 是你的 [/WEB-INF/applicationContext-service.xml]: 这个文件中配置有问题。要么就是你的
[sys.service.impl.loginServiceImpl]: 这个类中没有指定 Does the parameter type of the setter match the return type of the getter?
没找到 匹配的getter 和setter 方法 。。你看看我说这个几个地方吧
SessionFactory sessionFacotry;
public void setSessionFacotry(SessionFactory sessionFacotry) {
this.sessionFacotry = sessionFacotry;
}