异常
夜空中最亮的兴爷
这个作者很懒,什么都没留下…
展开
-
SSH整合中Hibernate的saveOrUpdate方法失效的问题
最近做一个ssh整合的crm项目,在使用Hibernate的saveOrUpdate方法保存或更新数据时,出现只保存数据,而不更新数据的现象。 网上大多数人认为是web.xml配置问题,针对我自己的程序查找发现与web.xml配置无关。 大家都知道,Hibernate中的对象有3种状态,瞬时状态(Transient)、持久化状态(Persistent)和...原创 2018-06-22 17:23:48 · 1292 阅读 · 0 评论 -
maven项目中报错 could not find class that it depends on找不到所依赖的类
maven工程在程序编译时报错,could not find class that it depends on找不到所依赖的类。能够引起这种错误的原因:jar包缺失、jar包冲突、jar包不完整、IDE工具问题。本次解决方案:删除本地仓库中的maven项目,重新install项目,恢复正常。...原创 2018-07-11 09:34:04 · 11853 阅读 · 0 评论 -
hibernate运行报错 :Position beyond number of declared ordinal parameters
org.springframework.orm.hibernate5.HibernateQueryException: Position beyond number of declared ordinal parameters. Remember that ordinal parameters are 1-based! Position: 1; nested exception is org.hi...原创 2018-07-13 23:21:27 · 11216 阅读 · 0 评论