File tree Expand file tree Collapse file tree 4 files changed +8
-11
lines changed
java/tk/mybatis/springboot/mapper Expand file tree Collapse file tree 4 files changed +8
-11
lines changed Original file line number Diff line number Diff line change 17
17
<properties >
18
18
<java .version>1.8</java .version>
19
19
<mybatis .spring.version>1.2.4</mybatis .spring.version>
20
+ <mapper .starter.version>2.0.3-beta1</mapper .starter.version>
21
+ <pagehelper .starter.version>1.2.5</pagehelper .starter.version>
20
22
</properties >
21
23
22
24
<dependencies >
72
74
<artifactId >jackson-module-parameter-names</artifactId >
73
75
</dependency >
74
76
75
- <dependency >
76
- <groupId >com.alibaba</groupId >
77
- <artifactId >druid</artifactId >
78
- <version >1.0.11</version >
79
- </dependency >
80
-
81
77
<dependency >
82
78
<groupId >org.mybatis.spring.boot</groupId >
83
79
<artifactId >mybatis-spring-boot-starter</artifactId >
88
84
<dependency >
89
85
<groupId >tk.mybatis</groupId >
90
86
<artifactId >mapper-spring-boot-starter</artifactId >
91
- <version >2.0.2 </version >
87
+ <version >${mapper.starter.version} </version >
92
88
</dependency >
93
89
<!-- pagehelper-->
94
90
<dependency >
95
91
<groupId >com.github.pagehelper</groupId >
96
92
<artifactId >pagehelper-spring-boot-starter</artifactId >
97
- <version >1.2.5 </version >
93
+ <version >${pagehelper.starter.version} </version >
98
94
<exclusions >
99
95
<exclusion >
100
96
<groupId >org.mybatis.spring.boot</groupId >
Original file line number Diff line number Diff line change 24
24
25
25
package tk .mybatis .springboot .mapper ;
26
26
27
+ import org .apache .ibatis .annotations .Select ;
27
28
import tk .mybatis .springboot .model .Country ;
28
29
import tk .mybatis .springboot .util .MyMapper ;
29
30
30
31
public interface CountryMapper extends MyMapper <Country > {
31
32
33
+ @ Select ("select * from country limit 1" )
34
+ Country findOne ();
32
35
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
server.port =9090
2
2
debug =true
3
- logging.level.root =debug
3
+ logging.level.root =warn
4
4
logging.level.tk.mybatis.springboot.mapper =trace
5
5
spring.datasource.url =jdbc:mysql://localhost:3306/test
6
6
spring.datasource.username =root
You can’t perform that action at this time.
0 commit comments