Skip to content

Commit

Permalink
升级到最新版本
Browse files Browse the repository at this point in the history
  • Loading branch information
abel533 committed Apr 27, 2018
1 parent 46400b8 commit e099ad1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
12 changes: 4 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
<properties>
<java.version>1.8</java.version>
<mybatis.spring.version>1.2.4</mybatis.spring.version>
<mapper.starter.version>2.0.3-beta1</mapper.starter.version>
<pagehelper.starter.version>1.2.5</pagehelper.starter.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -72,12 +74,6 @@
<artifactId>jackson-module-parameter-names</artifactId>
</dependency>

<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>1.0.11</version>
</dependency>

<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
Expand All @@ -88,13 +84,13 @@
<dependency>
<groupId>tk.mybatis</groupId>
<artifactId>mapper-spring-boot-starter</artifactId>
<version>2.0.2</version>
<version>${mapper.starter.version}</version>
</dependency>

This comment has been minimized.

Copy link
@LpLBraveHeart
<!--pagehelper-->
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.2.5</version>
<version>${pagehelper.starter.version}</version>
<exclusions>
<exclusion>
<groupId>org.mybatis.spring.boot</groupId>
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/tk/mybatis/springboot/mapper/CountryMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@

package tk.mybatis.springboot.mapper;

import org.apache.ibatis.annotations.Select;
import tk.mybatis.springboot.model.Country;
import tk.mybatis.springboot.util.MyMapper;

public interface CountryMapper extends MyMapper<Country> {

@Select("select * from country limit 1")
Country findOne();
}
2 changes: 0 additions & 2 deletions src/main/resources/META-INF/spring-devtools.properties

This file was deleted.

2 changes: 1 addition & 1 deletion src/main/resources/application-dev.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
server.port=9090
debug=true
logging.level.root=debug
logging.level.root=warn
logging.level.tk.mybatis.springboot.mapper=trace
spring.datasource.url=jdbc:mysql://localhost:3306/test
spring.datasource.username=root
Expand Down

0 comments on commit e099ad1

Please sign in to comment.