摘要: News-mapper.xml 配置: insert into news (title,content) values(#{title},#{content}) update news set title=#{title},content=#{content} where id=#{id} delete from news... 阅读全文
posted @ 2017-01-12 18:30 ATJAVA 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 实体类1: package com.etc.entity; import java.util.List; public class Teacher { private int tid; private String tname; private String sex; private List students; public int getTid() { return t... 阅读全文
posted @ 2017-01-12 18:17 ATJAVA 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 实体类: package com.etc.entity; public class News { private int id; private String title; private String content; public int getId() { return id; } public void setId(int id) { this.id = id;... 阅读全文
posted @ 2017-01-12 17:52 ATJAVA 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 实体类1: package com.etc.entity; import java.util.List; public class RoleInfo { private int rid; private String rname; private List userInfos; public int getRid() { return rid; } public void ... 阅读全文
posted @ 2017-01-12 17:40 ATJAVA 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 分为以下几类: 1、内联接(典型的联接运算,使用像 = 或 <> 之类的比较运算符)。包括相等联接和自然联接。 内联接使用比较运算符根据每个表共有的列的值匹配两个表中的行。例如,检索 students和courses表中学生标识号相同的所有行。 内连接 select a.*,b.* from a i 阅读全文
posted @ 2017-01-12 14:43 ATJAVA 阅读(270) 评论(0) 推荐(0) 编辑
摘要: AOP权限DEMO1: 实体类: package com.etc.entity; import org.aspectj.lang.annotation.Pointcut; public class User implements IUser { public static int NORMAL = 1;//普通用户角色 public static int ADMIN = 2; ... 阅读全文
posted @ 2017-01-12 11:14 ATJAVA 阅读(137) 评论(0) 推荐(0) 编辑
摘要: AOP日志DEMO1: 实体类: package com.etc.entity; import org.aspectj.lang.annotation.Pointcut; public class User implements IUser { public static int NORMAL = 1;//普通用户角色 public static int ADMIN = 2; ... 阅读全文
posted @ 2017-01-12 11:13 ATJAVA 阅读(133) 评论(0) 推荐(0) 编辑