From b0fe86996c3963f5f1ce11b2970deef83cfa1171 Mon Sep 17 00:00:00 2001
From: Coding Zhang <2291200076@qq.com>
Date: Fri, 21 Jan 2022 13:49:56 +0800
Subject: [PATCH] 9
---
张博凯的Java学习笔记.md | 153 +++++++++++++++++++++++++++++++++++++++-
1 file changed, 152 insertions(+), 1 deletion(-)
diff --git a/张博凯的Java学习笔记.md b/张博凯的Java学习笔记.md
index 4357f85..6b8f20c 100644
--- a/张博凯的Java学习笔记.md
+++ b/张博凯的Java学习笔记.md
@@ -3355,6 +3355,8 @@ https://mvnrepository.com/artifact/org.mybatis/mybatis-spring/2.0.6
**Druid依赖**(阿里巴巴数据源)
+
+
https://mvnrepository.com/artifact/com.alibaba/druid/1.2.8
```xml
@@ -3388,6 +3390,8 @@ https://mvnrepository.com/artifact/org.springframework/spring-test/5.2.19.RELEAS
**Spring JDBC**
+
+
https://mvnrepository.com/artifact/org.springframework/spring-jdbc/5.2.19.RELEASE
```xml
@@ -3852,6 +3856,8 @@ Process finished with exit code 0
**导入commons-logging依赖**
+
+
https://mvnrepository.com/artifact/commons-logging/commons-logging/1.2
```xml
@@ -3865,6 +3871,8 @@ https://mvnrepository.com/artifact/commons-logging/commons-logging/1.2
**导入slf4j-log4j12依赖**
+
+
https://mvnrepository.com/artifact/org.slf4j/slf4j-log4j12/1.7.25
```xml
@@ -4121,6 +4129,8 @@ public class UserService {
导入spring-webmvc依赖
+
+
https://mvnrepository.com/artifact/org.springframework/spring-webmvc/5.2.19.RELEASE
```xml
@@ -4564,6 +4574,8 @@ https://www.thymeleaf.org/
###### 导入thymeleaf依赖
+
+
https://mvnrepository.com/artifact/org.thymeleaf/thymeleaf/3.0.14.RELEASE
```xml
@@ -4575,7 +4587,9 @@ https://mvnrepository.com/artifact/org.thymeleaf/thymeleaf/3.0.14.RELEASE
```
-###### 导入thymeleaf依赖
+###### 导入thymeleaf-spring4依赖
+
+
https://mvnrepository.com/artifact/org.thymeleaf/thymeleaf-spring4/3.0.14.RELEASE
@@ -4835,6 +4849,143 @@ tomcat/conf/server.xml
+### SSM框架整合
+
+> MyBatis、Spring、SpringMVC三个框架整合
+
+[创建Mavenweb项目](#创建Mavenweb项目)
+
+#### 导入依赖
+
+##### 需要导入的依赖
+
+数据库:[MyBatis](#mybatis依赖)、[MySQL](#mysql依赖)
+
+单元测试:[JUnit](#junit依赖)
+
+实体类:[Lombok](#Lombok依赖)
+
+数据源:[Druid](#Druid依赖)
+
+Spring:[Spring](#spring依赖)、[Spring JDBC](#SpringJDBC依赖)、[Spring Web MVC](#springwebmvc依赖)
+
+页面:[Thymeleaf](#thymeleaf依赖)、[Thymeleaf Spring4](#thymeleaf-spring4依赖)
+
+日志:[log4j](#log4j依赖)、[commons-logging](#commons-logging依赖)、[slf4j-log4j12](#slf4j-log4j12依赖)
+
+##### 如下
+
+```xml
+
+
+ 4.0.0
+
+ org.example
+ ssm
+ 1.0-SNAPSHOT
+ war
+
+
+
+
+ org.mybatis
+ mybatis
+ 3.5.9
+
+
+
+
+ mysql
+ mysql-connector-java
+ 5.1.49
+
+
+
+
+ junit
+ junit
+ 4.12
+ test
+
+
+
+
+ org.projectlombok
+ lombok
+ 1.18.22
+ provided
+
+
+
+
+ com.alibaba
+ druid
+ 1.2.8
+
+
+
+
+ org.springframework
+ spring-context
+ 5.2.19.RELEASE
+
+
+
+
+ org.springframework
+ spring-jdbc
+ 5.2.19.RELEASE
+
+
+
+
+ org.springframework
+ spring-webmvc
+ 5.2.19.RELEASE
+
+
+
+
+ org.thymeleaf
+ thymeleaf
+ 3.0.14.RELEASE
+
+
+
+
+ org.thymeleaf
+ thymeleaf-spring4
+ 3.0.14.RELEASE
+
+
+
+
+ log4j
+ log4j
+ 1.2.17
+
+
+
+
+ commons-logging
+ commons-logging
+ 1.2
+
+
+
+
+ org.slf4j
+ slf4j-log4j12
+ 1.7.25
+ test
+
+
+
+```
+
+
## 提升