Skip to content

Commit 4a529c5

Browse files
committed
增加对mybatis-spring 1.2.4版本的支持,兼容之前的版本
1 parent 3fb4ab1 commit 4a529c5

File tree

4 files changed

+26
-11
lines changed

4 files changed

+26
-11
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Country代码:
9292
<dependency>
9393
<groupId>tk.mybatis</groupId>
9494
<artifactId>mapper</artifactId>
95-
<version>3.3.5</version>
95+
<version>3.3.6</version>
9696
</dependency>
9797
```
9898

@@ -108,7 +108,11 @@ http://repo1.maven.org/maven2/javax/persistence/persistence-api/1.0/
108108

109109
##[更新日志](http://git.oschina.net/free/Mapper/blob/master/wiki/Changelog.md)
110110

111-
##最新版本3.3.5 - 2016-02-16
111+
##最新版本3.3.6 - 2016-02-20
112+
113+
* 增加对mybatis-spring 1.2.4版本的支持,兼容之前的版本
114+
115+
###3.3.5 - 2016-02-16
112116

113117
* `Example`增加对动态表名支持,通过`setTableName`设置表名
114118
* 在example相关的两个`update`方法中,参数为实体类和`Example`,这个方法只能通过`Example`来设置动态表名,不支持通过实体设置动态表名

pom.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
<groupId>tk.mybatis</groupId>
3030
<artifactId>mapper</artifactId>
31-
<version>3.3.5</version>
31+
<version>3.3.6</version>
3232
<packaging>jar</packaging>
3333

3434
<name>mapper</name>
@@ -67,13 +67,6 @@
6767
<artifactId>persistence-api</artifactId>
6868
<version>1.0</version>
6969
</dependency>
70-
<dependency>
71-
<groupId>org.mybatis</groupId>
72-
<artifactId>mybatis-spring</artifactId>
73-
<version>1.2.1</version>
74-
<scope>compile</scope>
75-
<optional>true</optional>
76-
</dependency>
7770
<dependency>
7871
<groupId>org.springframework</groupId>
7972
<artifactId>spring-context</artifactId>
@@ -93,7 +86,14 @@
9386
<dependency>
9487
<groupId>org.mybatis</groupId>
9588
<artifactId>mybatis</artifactId>
96-
<version>3.2.8</version>
89+
<version>3.3.1</version>
90+
<scope>compile</scope>
91+
<optional>true</optional>
92+
</dependency>
93+
<dependency>
94+
<groupId>org.mybatis</groupId>
95+
<artifactId>mybatis-spring</artifactId>
96+
<version>1.2.4</version>
9797
<scope>compile</scope>
9898
<optional>true</optional>
9999
</dependency>

src/main/java/tk/mybatis/spring/mapper/MapperFactoryBean.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ public class MapperFactoryBean<T> extends org.mybatis.spring.mapper.MapperFactor
3636

3737
private MapperHelper mapperHelper;
3838

39+
public MapperFactoryBean() {
40+
}
41+
42+
public MapperFactoryBean(Class<T> mapperInterface) {
43+
super(mapperInterface);
44+
}
45+
3946
/**
4047
* {@inheritDoc}
4148
*/

wiki/Changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#更新日志
22

3+
##3.3.6 - 2016-02-20
4+
5+
* 增加对mybatis-spring 1.2.4版本的支持,兼容之前的版本
6+
37
##3.3.5 - 2016-02-16
48

59
* `Example`增加对动态表名支持,通过`setTableName`设置表名

0 commit comments

Comments
 (0)