1
- #SSM集成的基础项目,项目使用Maven管理
1
+ # SSM集成的基础项目,项目使用Maven管理
2
2
3
- #MyBatis3.3.0
3
+ # MyBatis3.3.0
4
4
5
- #Spring[ MVC] 4.1.2.RELEASE
5
+ # Spring[ MVC] 4.1.2.RELEASE
6
6
7
- #Oracle
7
+ # Oracle
8
8
9
9
项目使用Spring4.1.2.RELEASE + SpringMVC4.1.2.RELEASE + Mybatis3.3.0 + Oracle
10
10
11
11
项目集成了Mybatis分页插件和通用Mapper插件
12
12
13
13
项目使用的Oracle数据库,根据需要可以切换为其他数据库
14
14
15
- ##注意主键
15
+ ## 注意主键
16
16
17
17
``` java
18
18
public class Country {
@@ -26,7 +26,7 @@ public class Country {
26
26
// 省略其他
27
27
```
28
28
29
- ##注意通用Mapper 配置
29
+ ## 注意通用Mapper 配置
30
30
```xml
31
31
< bean class= " tk.mybatis.spring.mapper.MapperScannerConfigurer" >
32
32
< property name= " basePackage" value= " com.isea533.mybatis.mapper" / >
@@ -42,7 +42,7 @@ public class Country {
42
42
```
43
43
主要是`ORDER = BEFORE `,这个可以保证序列先执行
44
44
45
- ##新增国家输出的日志
45
+ ## 新增国家输出的日志
46
46
47
47
```
48
48
DEBUG [http- apr- 8091 - exec- 4 ] - JDBC Connection [com.alibaba.druid.proxy.jdbc. ConnectionProxyImpl @43daa112 ] will be managed by Spring
@@ -53,7 +53,7 @@ DEBUG [http-apr-8091-exec-4] - ==> Parameters: 200(Integer), 测试(String), CS(
53
53
DEBUG [http-apr-8091-exec-4] - <== Updates : 1
54
54
```
55
55
56
- ##如何运行本项目
56
+ ## 如何运行本项目
57
57
58
58
先通过项目sql文件下的sql创建数据库的基本环境,如果没有表空间,就先执行**创建表空间和用户.sql**
59
59
@@ -70,23 +70,23 @@ jdbc.password = mybatis
70
70
71
71
保持上面的配置和自己的数据库一致即可。
72
72
73
- ##Spring Boot 集成MyBatis 的基础项目
73
+ ## Spring Boot 集成MyBatis 的基础项目
74
74
75
- ###https://github.com/abel533/MyBatis -Spring -Boot
75
+ ### https://github.com/abel533/MyBatis -Spring -Boot
76
76
77
- ##MyBatis 工具
77
+ ## MyBatis 工具
78
78
79
- ###http://www.mybatis.tk
79
+ ### http://www.mybatis.tk
80
80
81
- ##推荐使用Mybatis 通用Mapper3
81
+ ## 推荐使用Mybatis 通用Mapper3
82
82
83
- ###https://github.com/abel533/Mapper
83
+ ### https://github.com/abel533/Mapper
84
84
85
- ##推荐使用Mybatis 分页插件PageHelper
85
+ ## 推荐使用Mybatis 分页插件PageHelper
86
86
87
- ###https://github.com/pagehelper/Mybatis -PageHelper
87
+ ### https://github.com/pagehelper/Mybatis -PageHelper
88
88
89
- ##作者信息
89
+ ## 作者信息
90
90
91
91
- 作者博客:http://blog.csdn.net/isea533
92
92
0 commit comments