MyBatis 和 Spring Boot 的集成,Mybatis Spring Boot 1.0.0 正式发布

jopen 9年前

Mybatis Spring Boot 是 MyBatis 和 Spring Boot 的集成。

Mybatis Spring Boot 1.0.0 正式发布,详细信息请查看发行页面:

https://github.com/mybatis/mybatis-spring-boot/releases

下载地址如下:

配置文件设置:

mybatis.config= # mybatis config file  mybatis.mapperLocations= # mappers file  mybatis.typeAliasesPackage= # domain object's package   mybatis.typeHandlersPackage= # handler's package  mybatis.check-config-location= # check the mybatis configuration exists  mybatis.executorType= # mode of execution. Default is SIMPLE

依赖:
<dependency>      <groupId>org.mybatis.spring.boot</groupId>      <artifactId>mybatis-spring-boot-starter</artifactId>      <version>1.0.0-SNAPSHOT</version>  </dependency>
来自:http://www.oschina.net/news/68197/mybatis-spring-boot-1-0-0