![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
错误处理
文章平均质量分 54
ailasanshai
java初学者
展开
-
错误:a different object with the same identifier value was already associated with the session
好像这个问题经常出现,解决办法也很多,我只推荐一种:把session.update(object)换成session.merge(object)这个方法会把object属性拷贝一份存过去,所以就不存在“a different object”这种问题了代码如下: public void update(Project p) { Session session = Hiberna原创 2016-07-04 10:49:28 · 308 阅读 · 0 评论 -
错误:org.springframework.beans.factory.BeanCreationException
不能创建对象也有很多种原因,这次碰到的是hibernate.cfg.xml里这个映射写错了,当然错误信息里也有org.hibernate.MappingNotFoundException: resource: /wangli/entity/Dept.hbm.xml not found应该写成这个路径也是可以用Ctrl+左键点的,只有能点才算映射正确在bean.xml原创 2016-07-05 14:40:13 · 824 阅读 · 0 评论 -
red5启动错误
Starting Red5Red5 root: D:/Program Files/red5-server-1.0.6-RELEASEConfiguation root: D:/Program Files/red5-server-1.0.6-RELEASE/confSetting temp directory to C:\Users\Administrator\AppData\local原创 2016-09-13 10:45:30 · 2650 阅读 · 2 评论