摘要: Employee package com.example.demo.domain; import java.io.Serializable; public class Employee implements Serializable { private Integer id; private Str 阅读全文
posted @ 2017-12-18 23:54 uptothesky 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 一级缓存--SqlSession级别 数据库表tb_user User package com.example.demo.domain; public class User { private Integer id; private String name; private String sex; 阅读全文
posted @ 2017-12-17 17:20 uptothesky 阅读(765) 评论(0) 推荐(0) 编辑
摘要: if 新建表employee Employee package com.example.demo.domain; import java.io.Serializable; public class Employee implements Serializable { private Integer 阅读全文
posted @ 2017-12-16 19:25 uptothesky 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 一对一 创建数据表 CREATE TABLE `tb_card` ( `id` int NOT NULL AUTO_INCREMENT , `code` varchar(18) NULL , PRIMARY KEY (`id`) ); insert into tb_card(code) values 阅读全文
posted @ 2017-12-14 23:17 uptothesky 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 整体结构 pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-ins 阅读全文
posted @ 2017-12-09 20:59 uptothesky 阅读(185) 评论(0) 推荐(0) 编辑
摘要: SpringMvc Interceptor拦截器的配置与使用 参考 loginForm.jsp <%-- Created by IntelliJ IDEA. User: mythsky Date: 2017/12/5 Time: 21:57 To change this template use F 阅读全文
posted @ 2017-12-05 22:13 uptothesky 阅读(127) 评论(0) 推荐(0) 编辑
摘要: pom.xml <dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>5.0.1.RELEASE</version> </ 阅读全文
posted @ 2017-12-05 17:59 uptothesky 阅读(160) 评论(0) 推荐(0) 编辑
摘要: pom.xml <dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>5.0.1.RELEASE</version> </ 阅读全文
posted @ 2017-12-05 16:15 uptothesky 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 在http://mvnrepository.com/中搜索需要的包 pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http:// 阅读全文
posted @ 2017-12-04 23:33 uptothesky 阅读(165) 评论(0) 推荐(0) 编辑
摘要: pom.xml <dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjrt</artifactId> <version>1.8.13</version> </dependency> <dependency> <groupId>o 阅读全文
posted @ 2017-12-04 17:59 uptothesky 阅读(128) 评论(0) 推荐(0) 编辑