org.springframework.beans.factory.BeanCreationException:Error creating bean with name 'mySessionFactory' defined in ServletContext resource [/WEB-INF/classes/Context-Dao.xml]:Invocation of init method failed;
nested exceptin is org.hibernate.PropertyNotFoundException: Could not find a setter for property type in class com.bs.model.TechnicalType Caused by:
org.hibernate.PropertyNotFoundException:Could not find a setter for property type in class com.bs.model.TechnicalType
程序我不太会 ~~帮帮忙啊
nested exceptin is org.hibernate.PropertyNotFoundException: Could not find a setter for property type in class com.bs.model.TechnicalType Caused by:
org.hibernate.PropertyNotFoundException:Could not find a setter for property type in class com.bs.model.TechnicalType
程序我不太会 ~~帮帮忙啊
解决方案 »
- 有关jdbc数据库存储日期问题
- spring中 jdbcTemplate nullpointerexception的问题
- 对读库数据进行运算
- 请各位大哥大姐帮我解答java和php的这个疑惑,谢谢!
- 求教jsp显示中文名图片的问题!!!
- 急!JSP页面提交出现异常,请高手帮忙看看
- Tomcat + jconnect5.5 + sybase11.5字符集问题,我要疯!!!高手请入内
- 文件上传非文本文件格式错误,高手指教!
- 在JSP页面中如何用代码得到自己所在JSP的文件名?
- ■■java类,子类的封装及调用应当如何来构建好呢,给个建议或实例好吗?■■
- 虚拟机下liunx系统如何上网
- 微软官方网站竟然被黑。。。 大量的黄色图片视频。。不堪入目!!!!
这个TechnicalType类里确实set方法
根据异常看,问题极大可能是对应一个property,hibernate无法找到合适的getter/setter,需要注意的getter/setter方法的定义需要符合JavaBean的约束,访问修饰符public不是必须的,即使属性的访问修饰符为private,protected,hibernate同样可以通过放射来为其设置属性值。
我把Model 又手写了一遍~~谢谢 了 ~~~~~