File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
src/main/java/tk/mybatis/spring/mapper Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 3
3
import org .springframework .beans .factory .config .BeanDefinition ;
4
4
import org .springframework .beans .factory .support .BeanDefinitionRegistry ;
5
5
import org .springframework .beans .factory .support .GenericBeanDefinition ;
6
+ import tk .mybatis .mapper .entity .Config ;
6
7
import tk .mybatis .mapper .mapperhelper .MapperHelper ;
7
8
8
9
import java .util .Properties ;
11
12
public class MapperScannerConfigurer extends org .mybatis .spring .mapper .MapperScannerConfigurer {
12
13
private MapperHelper mapperHelper ;
13
14
15
+ /**
16
+ * 属性注入
17
+ *
18
+ * @param properties
19
+ */
14
20
public void setProperties (Properties properties ) {
15
21
mapperHelper = new MapperHelper ();
16
22
mapperHelper .setProperties (properties );
17
23
}
18
24
25
+ /**
26
+ * Config方式注入
27
+ *
28
+ * @param config
29
+ */
30
+ public void setConfig (Config config ) {
31
+ mapperHelper = new MapperHelper ();
32
+ mapperHelper .setConfig (config );
33
+ }
34
+
19
35
/**
20
36
* 注册完成后,对MapperFactoryBean的类进行特殊处理
21
37
*
You can’t perform that action at this time.
0 commit comments