File tree 5 files changed +9
-26
lines changed
5 files changed +9
-26
lines changed Original file line number Diff line number Diff line change 173
173
<dependency >
174
174
<groupId >org.springframework</groupId >
175
175
<artifactId >spring-framework-bom</artifactId >
176
- <version >4.1.2 .RELEASE</version >
176
+ <version >3.2.12 .RELEASE</version >
177
177
<type >pom</type >
178
178
<scope >import</scope >
179
179
</dependency >
Original file line number Diff line number Diff line change @@ -135,6 +135,8 @@ private void initSpringVersion() {
135
135
int MajorVersion = Integer .parseInt (springVersion .substring (0 , springVersion .indexOf ("." )));
136
136
if (MajorVersion > 3 ) {
137
137
spring4 = true ;
138
+ } else {
139
+ spring4 = false ;
138
140
}
139
141
}
140
142
} catch (Exception e ) {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
package com .isea533 .mybatis .service ;
2
2
3
+ import com .isea533 .mybatis .mapper .Country2Mapper ;
3
4
import com .isea533 .mybatis .mapper .CountryMapper ;
4
5
import com .isea533 .mybatis .model .Country ;
5
6
import com .isea533 .mybatis .model .Country2 ;
16
17
* @author liuzh
17
18
*/
18
19
@ Service
19
- public class DemoService extends BaseService < Country2 > {
20
+ public class DemoService {
20
21
@ Autowired
21
22
private CountryMapper countryMapper ;
22
23
24
+ @ Autowired
25
+ private Country2Mapper mapper ;
26
+
23
27
private JdbcTemplate jdbcTemplate ;
24
28
25
29
@ Autowired
Original file line number Diff line number Diff line change 34
34
<property name =" typeAliasesPackage" value =" com.isea533.mybatis.model" />
35
35
<property name =" plugins" >
36
36
<array >
37
- <!-- <bean class="com.isea533.mybatis.mapperhelper.MapperInterceptor">
38
- <property name="properties">
39
- <value>
40
- mappers=com.isea533.mybatis.mapperhelper.Mapper
41
- </value>
42
- </property>
43
- </bean>-->
44
37
<bean class =" com.isea533.mybatis.pagehelper.PageHelper" >
45
38
<property name =" properties" >
46
39
<value >
54
47
</bean >
55
48
56
49
<bean class =" org.mybatis.spring.mapper.MapperScannerConfigurer" >
57
- <property name =" basePackage" value =" com.isea533.mybatis.mapper,com.isea533.mybatis.mapperhelper " />
50
+ <property name =" basePackage" value =" com.isea533.mybatis.mapper" />
58
51
</bean >
59
52
60
53
<bean id =" sqlSession" class =" org.mybatis.spring.SqlSessionTemplate" scope =" prototype" >
You can’t perform that action at this time.
0 commit comments