摘要: Spring 的体系结构: Spring 框架是一个分层架构,它包含一系列的功能要素,被分为大约20个模块。这些模块分为 Core Container、Data Access/Integration、Web、AOP、Aspects、Instrumentation 和 Test 如下图所示: 核心容器 阅读全文
posted @ 2020-11-04 20:36 蒋先生Terry 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 创建新的类并继承Thread(Thread必须重写run()方法) public class MyThread extends Thread{ public static void main(String[] args) { } @Override //重写run()方法 public void r 阅读全文
posted @ 2020-11-04 19:38 蒋先生Terry 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 整合步骤: 第一步: MyBatis和Spring整合,通过Spring管理mapper接口。 使用mapper的扫描器自动扫描mapper接口在Spring中进行注册。 第二步: 通过Spring管理Service接口。 使用配置方式将Service接口配置在Spring配置文件中。 实现事务控制 阅读全文
posted @ 2020-11-04 19:21 蒋先生Terry 阅读(131) 评论(0) 推荐(0) 编辑