File tree 1 file changed +9
-17
lines changed
1 file changed +9
-17
lines changed Original file line number Diff line number Diff line change 73
73
<property name =" typeAliasesPackage" value =" com.isea533.mybatis.model" />
74
74
<property name =" plugins" >
75
75
<array >
76
+ <bean class =" com.github.abel533.mapperhelper.MapperInterceptor" >
77
+ <property name =" properties" >
78
+ <value >
79
+ mappers=com.github.abel533.mapper.Mapper
80
+ IDENTITY=MYSQL
81
+ notEmpty=true
82
+ </value >
83
+ </property >
84
+ </bean >
76
85
<bean class =" com.github.pagehelper.PageHelper" >
77
86
<property name =" properties" >
78
87
<value >
116
125
<bean id =" transactionManager" class =" org.springframework.jdbc.datasource.DataSourceTransactionManager" >
117
126
<property name =" dataSource" ref =" dataSource" />
118
127
</bean >
119
-
120
- <bean class =" com.github.abel533.mapperhelper.MapperHelper"
121
- depends-on =" sqlSession" init-method =" initMapper" scope =" singleton" lazy-init =" false" >
122
- <!-- 通用Mapper接口-->
123
- <property name =" mappers" >
124
- <array >
125
- <value >${mapper.Mapper}</value >
126
- </array >
127
- </property >
128
- <!-- 必须注入sqlSession-->
129
- <property name =" sqlSessions" ref =" sqlSession" />
130
- <!-- 对于一般的getAllIfColumnNode,是否判断!='',默认不判断-->
131
- <!-- 该参数会影响所有使用getAllIfColumnNode方法的地方-->
132
- <!-- 具体到Mapper<T>,影响3个方法:select,selectCount,delete-->
133
- <property name =" notEmpty" value =" true" />
134
- <property name =" IDENTITY" value =" MYSQL" />
135
- </bean >
136
128
</beans >
You can’t perform that action at this time.
0 commit comments