File tree Expand file tree Collapse file tree 3 files changed +7
-46
lines changed
src/main/java/tk/mybatis/spring/mapper Expand file tree Collapse file tree 3 files changed +7
-46
lines changed Original file line number Diff line number Diff line change 33
33
34
34
<properties >
35
35
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
36
+ <spring .version>3.2.12.RELEASE</spring .version>
36
37
</properties >
37
38
38
39
<dependencies >
52
53
<dependency >
53
54
<groupId >org.springframework</groupId >
54
55
<artifactId >spring-context</artifactId >
55
- <version >3.2.12.RELEASE </version >
56
+ <version >${spring.version} </version >
56
57
<scope >compile</scope >
57
58
<optional >true</optional >
58
59
</dependency >
59
60
<dependency >
60
61
<groupId >org.springframework</groupId >
61
62
<artifactId >spring-tx</artifactId >
62
- <version >3.2.12.RELEASE </version >
63
+ <version >${spring.version} </version >
63
64
<scope >compile</scope >
64
65
<optional >true</optional >
65
66
</dependency >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -12,9 +12,7 @@ public class MapperScannerConfigurer extends org.mybatis.spring.mapper.MapperSca
12
12
private MapperHelper mapperHelper ;
13
13
14
14
public void setProperties (Properties properties ) {
15
- if (mapperHelper == null ){
16
- mapperHelper = new MapperHelper ();
17
- }
15
+ mapperHelper = new MapperHelper ();
18
16
mapperHelper .setProperties (properties );
19
17
}
20
18
@@ -26,6 +24,9 @@ public void setProperties(Properties properties) {
26
24
@ Override
27
25
public void postProcessBeanDefinitionRegistry (BeanDefinitionRegistry registry ) {
28
26
super .postProcessBeanDefinitionRegistry (registry );
27
+ if (mapperHelper == null ) {
28
+ mapperHelper = new MapperHelper ();
29
+ }
29
30
String [] names = registry .getBeanDefinitionNames ();
30
31
GenericBeanDefinition definition ;
31
32
for (String name : names ) {
You can’t perform that action at this time.
0 commit comments