File tree Expand file tree Collapse file tree 4 files changed +22
-9
lines changed
src/main/resources/templates Expand file tree Collapse file tree 4 files changed +22
-9
lines changed Original file line number Diff line number Diff line change @@ -27,13 +27,13 @@ GitHub项目:https://github.com/mybatis-book/book
27
27
<dependency >
28
28
<groupId >tk.mybatis</groupId >
29
29
<artifactId >mapper-spring-boot-starter</artifactId >
30
- <version >1.1 .4</version >
30
+ <version >1.2 .4</version >
31
31
</dependency >
32
32
<!-- pagehelper-->
33
33
<dependency >
34
34
<groupId >com.github.pagehelper</groupId >
35
35
<artifactId >pagehelper-spring-boot-starter</artifactId >
36
- <version >1.2.1 </version >
36
+ <version >1.2.3 </version >
37
37
</dependency >
38
38
```
39
39
## Spring DevTools 配置
Original file line number Diff line number Diff line change 11
11
<parent >
12
12
<groupId >org.springframework.boot</groupId >
13
13
<artifactId >spring-boot-starter-parent</artifactId >
14
- <version >1.5.6 .RELEASE</version >
14
+ <version >2.0.0 .RELEASE</version >
15
15
</parent >
16
16
17
17
<properties >
74
74
<version >1.0.11</version >
75
75
</dependency >
76
76
77
+ <dependency >
78
+ <groupId >org.mybatis.spring.boot</groupId >
79
+ <artifactId >mybatis-spring-boot-starter</artifactId >
80
+ <version >1.3.1</version >
81
+ </dependency >
82
+
77
83
<!-- mapper-->
78
84
<dependency >
79
85
<groupId >tk.mybatis</groupId >
80
86
<artifactId >mapper-spring-boot-starter</artifactId >
81
- <version >1.2.0</version >
87
+ <!-- <version>1.2.0</version>-->
88
+ <version >1.2.4</version >
82
89
</dependency >
83
90
<!-- pagehelper-->
84
91
<dependency >
85
92
<groupId >com.github.pagehelper</groupId >
86
93
<artifactId >pagehelper-spring-boot-starter</artifactId >
87
- <version >RELEASE</version >
94
+ <version >1.2.3</version >
95
+ <exclusions >
96
+ <exclusion >
97
+ <groupId >org.mybatis.spring.boot</groupId >
98
+ <artifactId >mybatis-spring-boot-starter</artifactId >
99
+ </exclusion >
100
+ </exclusions >
88
101
</dependency >
89
102
90
103
<dependency >
Original file line number Diff line number Diff line change 129
129
<tbody >
130
130
<#list pageInfo.list as country >
131
131
<tr >
132
- <td >${country.id} </td >
132
+ <td >${country.id?c } </td >
133
133
<td >${country.countryname} </td >
134
134
<td >${country.countrycode} </td >
135
135
<td style =" text-align :center ;" >[<a
136
- href =" ${request.contextPath}/countries/view/${country.id}" >修改</a >] -
137
- [<a href =" ${request.contextPath}/countries/delete/${country.id}" >删除</a >]
136
+ href =" ${request.contextPath}/countries/view/${country.id?c }" >修改</a >] -
137
+ [<a href =" ${request.contextPath}/countries/delete/${country.id?c }" >删除</a >]
138
138
</td >
139
139
</tr >
140
140
</#list >
Original file line number Diff line number Diff line change 5
5
</head >
6
6
<body style =" margin-top :50px ;overflow : hidden ;" >
7
7
<form action =" ${request.contextPath}/countries/save" method =" post" >
8
- <input type =" hidden" name =" id" value =" <#if country.id??>${country.id}</#if>" />
8
+ <input type =" hidden" name =" id" value =" <#if country.id??>${country.id?c }</#if>" />
9
9
<table class =" gridtable" style =" width :800px ;" >
10
10
<tr >
11
11
<th colspan =" 5" >国家(地区)信息 - [<a href =" ${request.contextPath}/countries" >返回</a >]</th >
You can’t perform that action at this time.
0 commit comments