上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 35 下一页
摘要: 1、定义拦截器,继承MethodFilterInterceptorpackage com.life.stuts.interceptor;import java.util.Map;import com.opensymphony.xwork2.ActionInvocation;import com.op... 阅读全文
posted @ 2014-08-07 12:02 行云有影 阅读(641) 评论(0) 推荐(0) 编辑
摘要: 1、Dao层接口package com.life.dao;import java.util.List;import java.util.Map;import org.hibernate.Query;public interface IDao { /** * 根据id查找实体 *... 阅读全文
posted @ 2014-08-06 00:28 行云有影 阅读(7625) 评论(0) 推荐(0) 编辑
摘要: 删除:1、org.springframework.dao.DataIntegrityViolationException: Cannot delete or update a parent row: a foreign key constraint fails (`life`.`tb_ad`, CO... 阅读全文
posted @ 2014-08-05 19:31 行云有影 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 1、HQL分页显示firstResult是从第几条开始(索引从0开始计数)maxResults表示记录的条数,而不是到第几条数据Query query = getQuery(hql, params);List list = query.setFirstResult(firstResult) ... 阅读全文
posted @ 2014-08-05 12:49 行云有影 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 1、root登录mysql之后,查看端口,确认是3306show variables like 'port';2、添加root@%用户并设置密码为123456GRANT ALL PRIVILEGES ON *.* TO root@"%" IDENTIFIED BY "123456";如果出现这样的错... 阅读全文
posted @ 2014-08-01 22:55 行云有影 阅读(502) 评论(0) 推荐(0) 编辑
摘要: 1、obj.getList().add( t )就可以了,当然set也可以,obj.getList().addAll(list)也可以 阅读全文
posted @ 2014-07-31 00:51 行云有影 阅读(710) 评论(0) 推荐(0) 编辑
摘要: 1、action.classprivate File pictureType; private String pictureTypeContentType; private String pictureTypeFileName;public String editType() throw... 阅读全文
posted @ 2014-07-24 15:00 行云有影 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 1、ServletActionContext.getServletContext().getRealPath("/")得到:C:\Users\JL\Workspaces\.metadata\.me_tcat\webapps\HuiLife\ServletActionContext.getServle... 阅读全文
posted @ 2014-07-20 14:58 行云有影 阅读(827) 评论(0) 推荐(0) 编辑
摘要: 1 Object[] params={store==null?null:store.getId()};Done 阅读全文
posted @ 2014-07-19 15:18 行云有影 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 1、惠生活管理系统 客户端API 2‘提交action之后赋相应值session、request... 阅读全文
posted @ 2014-07-17 10:53 行云有影 阅读(213) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 35 下一页