Skip to content

Commit 4b665cd

Browse files
committed
更新到最新版本,spring boot 2.0, mapper 1.2.4, pagehelper 1.2.3
1 parent a3c3814 commit 4b665cd

File tree

4 files changed

+22
-9
lines changed

4 files changed

+22
-9
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ GitHub项目:https://github.com/mybatis-book/book
2727
<dependency>
2828
<groupId>tk.mybatis</groupId>
2929
<artifactId>mapper-spring-boot-starter</artifactId>
30-
<version>1.1.4</version>
30+
<version>1.2.4</version>
3131
</dependency>
3232
<!--pagehelper-->
3333
<dependency>
3434
<groupId>com.github.pagehelper</groupId>
3535
<artifactId>pagehelper-spring-boot-starter</artifactId>
36-
<version>1.2.1</version>
36+
<version>1.2.3</version>
3737
</dependency>
3838
```
3939
## Spring DevTools 配置

pom.xml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<parent>
1212
<groupId>org.springframework.boot</groupId>
1313
<artifactId>spring-boot-starter-parent</artifactId>
14-
<version>1.5.6.RELEASE</version>
14+
<version>2.0.0.RELEASE</version>
1515
</parent>
1616

1717
<properties>
@@ -74,17 +74,30 @@
7474
<version>1.0.11</version>
7575
</dependency>
7676

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+
7783
<!--mapper-->
7884
<dependency>
7985
<groupId>tk.mybatis</groupId>
8086
<artifactId>mapper-spring-boot-starter</artifactId>
81-
<version>1.2.0</version>
87+
<!--<version>1.2.0</version>-->
88+
<version>1.2.4</version>
8289
</dependency>
8390
<!--pagehelper-->
8491
<dependency>
8592
<groupId>com.github.pagehelper</groupId>
8693
<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>
88101
</dependency>
89102

90103
<dependency>

src/main/resources/templates/index.ftl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,12 @@
129129
<tbody>
130130
<#list pageInfo.list as country>
131131
<tr>
132-
<td>${country.id}</td>
132+
<td>${country.id?c}</td>
133133
<td>${country.countryname}</td>
134134
<td>${country.countrycode}</td>
135135
<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>]
138138
</td>
139139
</tr>
140140
</#list>

src/main/resources/templates/view.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</head>
66
<body style="margin-top:50px;overflow: hidden;">
77
<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>"/>
99
<table class="gridtable" style="width:800px;">
1010
<tr>
1111
<th colspan="5">国家(地区)信息 - [<a href="${request.contextPath}/countries">返回</a>]</th>

0 commit comments

Comments
 (0)