
SSH
夏了夏天c
这个作者很懒,什么都没留下…
展开
-
org.hibernate.QueryException: Expected positional parameter count: 2, actual parameters: [] [from Us
错误:org.hibernate.QueryException: Expected positional parameter count: 2, actual parameters: [] [from User where username = ? and password = ?]我出错的代码是: Query q = se原创 2013-07-20 22:07:38 · 6658 阅读 · 0 评论 -
整合SSH三大框架用注解时报An AnnotationConfiguration instance is required to use
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Invocat原创 2013-07-20 15:59:23 · 1648 阅读 · 0 评论 -
报这个错误的原因:No identifier specified for entity:
在使用hibernate annotation时出错了原因:pojo实体bean缺少了主键解决办法:在pojo类上检查@Id有没有写在get方法上原创 2013-07-20 16:13:53 · 8548 阅读 · 0 评论 -
struts2标签迭代显示list中储存对象的属性值
action:(注意登陆方法中的代码)package cn.net.xsoft.action;import java.util.List;import cn.net.xsoft.bo.ArticleBO;import cn.net.xsoft.bo.ArticleTypeBO;import cn.net.xsoft.bo.LoginBO;import cn.net.xsoft.po原创 2013-07-23 21:42:19 · 1482 阅读 · 0 评论