
框架技术
pianpiannia
这个作者很懒,什么都没留下…
展开
-
ssm整合的配置文件
1.首先整合dao 第一步配置mybatis自己的配置文件SqlMapConfig.xmlconfiguration> typeAliases> package name="jun.ssm.po" /> typeAliases> -->configuration>第二步配置spring配置文原创 2017-07-13 17:35:57 · 1107 阅读 · 0 评论 -
Ajax异步校验
用的框架:struts2、Spring、Hibernate jsp界面(部分):<script> function checkUsername(){ //获得文本框的值 var username = document.getElementById("username").value; //传统Ajax校验 //1.创建异步交互原创 2017-08-08 19:04:36 · 401 阅读 · 0 评论 -
ssh中分页
1.写一个JavaBeanimport java.util.List;public class PageBean { private Integer currentPage;//当前页 private Integer totalPage;//总页数 private Integer totalCount;//总纪录数 private Integer pageCount原创 2017-08-02 15:44:37 · 223 阅读 · 0 评论 -
拦截器
java里的拦截器是动态拦截Action调用的对象。它运行在action对象创建之后,action的方法使用之前执行。在action方法执行之前执行拦截器,执行过程使用aop思想。执行多个拦截器时使用责任链设计模式。自定义拦截器代码import org.apache.struts2.ServletActionContext;import com.opensymphony.xwork2.Action原创 2017-08-19 10:39:57 · 268 阅读 · 0 评论 -
多条件组合查询
方法一://多条件组合查询 public List<Customer> findMoreCondition(Customer customer) { //1-使用hibernate模板里面find方法实现 //拼接hql语句 String hql = "from Customer where 1=1"; //创建list集合,如原创 2017-08-21 09:27:10 · 2370 阅读 · 0 评论