摘要: 一.大配置 二.小配置 三.jar包 四.实体类 public class StudentInfo { private Integer stuId; private String stuName; private Integer stuAge; private Date stuDate; } 五.更 阅读全文
posted @ 2017-08-20 08:53 我的MyBatis 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 1.添加xsd约束 @Component("info") 不分层@Repository("info") dao@Service("info") biz@Controller("info") action @Value() 在一个类中注入普通属性值 @Resource 在一个类中注入域属性 @Auto 阅读全文
posted @ 2017-08-20 08:51 我的MyBatis 阅读(578) 评论(0) 推荐(0) 编辑
摘要: 1.Advisor自动代理生成器 配置文件 2.BeanName自动代理生成器 配置文件 3.单侧 阅读全文
posted @ 2017-08-20 08:50 我的MyBatis 阅读(387) 评论(0) 推荐(0) 编辑
摘要: 1.接口和类 1.1 ISomeService 接口 1.2 SomeService类 1.3 MyAspect 类 2.xml文件 3.测试类 阅读全文
posted @ 2017-08-20 08:49 我的MyBatis 阅读(407) 评论(0) 推荐(0) 编辑
摘要: 1.导包 2.1 颜色 2.1.1ColorInk 类中 2.1.2 GrayInk 类中 2.1.3 Ink 接口中 2.2 纸张 2.2.1 A4Paper 类中 2.2.2 B5Paper 类中 2.2.3 Paper接口中 2.3 Printer 3.applicationContext.x 阅读全文
posted @ 2017-08-20 08:46 我的MyBatis 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 一.简单案例 打印hello spring 1.导包 2.创建HappyService类 3.创建applicationContext.xml文件 4.测试类 阅读全文
posted @ 2017-08-20 08:45 我的MyBatis 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 1.静态代理 抽象主题 :Subject 目标对象:ReSubject 代理对象:Psubject 单侧 2.动态代理 接口 类 单侧 3.cglib动态代理 单侧(两种方式) 阅读全文
posted @ 2017-08-20 08:45 我的MyBatis 阅读(395) 评论(0) 推荐(0) 编辑
摘要: 1.构造注入 2.p命名空间注入 3.集合属性注入 3.1 Array 3.2 List 3.3set 3.4 Map 3.5 properties 阅读全文
posted @ 2017-08-20 08:43 我的MyBatis 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 1.添加xsd约束 @Component("info") 不分层@Repository("info") dao@Service("info") biz@Controller("info") action @Value() 在一个类中注入普通属性值 @Resource 在一个类中注入域属性 @Auto 阅读全文
posted @ 2017-08-20 08:43 我的MyBatis 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 1.前置增强 接口 类 配置文件 单侧 2.后置增强 配置文件 单侧 3.环绕增强 配置文件 单侧 4.异常增强 配置文件 单侧 阅读全文
posted @ 2017-08-20 08:35 我的MyBatis 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 1.建数据表 2.搭建分层. 2.1.entity层 2.1.1 book类 2.2 dao层 2.2.1接口 2.2.2.BookDAOimpl 类 2.3service层 2.3.1IBookService 接口 2.3.2 BookServiceImpl 3.jdbc.properties 4 阅读全文
posted @ 2017-08-20 08:34 我的MyBatis 阅读(646) 评论(0) 推荐(0) 编辑
摘要: 配置文件 单侧 阅读全文
posted @ 2017-08-20 08:33 我的MyBatis 阅读(414) 评论(0) 推荐(0) 编辑