上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 17 下一页
摘要: 1.通过maven引入相关的jar包依赖 <!-- https://mvnrepository.com/artifact/org.springframework/spring-webmvc --> <dependency> <groupId>org.springframework</groupId> 阅读全文
posted @ 2020-06-02 00:21 shouyaya 阅读(216) 评论(0) 推荐(0)
摘要: 其主要的流程: 阅读全文
posted @ 2020-06-02 00:13 shouyaya 阅读(97) 评论(0) 推荐(0)
摘要: 转载至:https://blog.csdn.net/weixin_41618475/article/details/90262708 如何你在拉取(git clone) github上的代码太慢时,可以自己用码云建一个自己的仓库,把github代码直接放到自己仓库再git clone就能解决这个问题 阅读全文
posted @ 2020-05-22 00:32 shouyaya 阅读(457) 评论(0) 推荐(0)
摘要: 转载:https://www.jianshu.com/p/79f9d85dd846 阅读全文
posted @ 2020-05-11 18:34 shouyaya 阅读(189) 评论(0) 推荐(0)
摘要: 使用pagehelper分页的原理是: 通过MyBatis的插件原理(类似web里的filter拦截器),在mapper配置文件将pagehelper注册为MyBatis的插件,从而进行分页 1.通过maven引入pagehelper依赖: <!-- https://mvnrepository.co 阅读全文
posted @ 2020-05-06 23:28 shouyaya 阅读(796) 评论(1) 推荐(0)
摘要: 1.通过for each标签拼接sql(数量较少的时候使用) a.拼接values() public int addPersons(@Param("persons") List<Person> persons);//接口 <insert id="addPersons"> insert into pe 阅读全文
posted @ 2020-04-28 22:43 shouyaya 阅读(18893) 评论(4) 推荐(1)
摘要: 1.传递单参数的形式 MyBatis会自动进行参数的赋值 如: public void deletePerson(Integer id); //接口 <!-- mapper配置文件--> <delete id="deletePerson" parameterType="int"> delete fr 阅读全文
posted @ 2020-04-28 00:20 shouyaya 阅读(888) 评论(0) 推荐(0)
摘要: 1.添加日志实体对象 package com.yzy.entity; import java.util.Date; public class Log { private Date oprTime; private String type; private String operator; priva 阅读全文
posted @ 2020-04-26 23:25 shouyaya 阅读(282) 评论(0) 推荐(0)
摘要: <resultMap id="resultMap" type="Staff"> <id property="id" column="id" javaType="Integer"></id> <result property="account" column="account" javaType="S 阅读全文
posted @ 2020-04-21 23:37 shouyaya 阅读(976) 评论(0) 推荐(0)
摘要: 除重定向和转发方式跳转jsp页面还可通过respond.getWriter().print()写入一个js标签设置href=“”进而跳转 如: response.getWriter().print("<script type=\"text/javascript\">parent.location.h 阅读全文
posted @ 2020-04-21 23:29 shouyaya 阅读(323) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 17 下一页