全新的?MyBatis-Plus?3.0 版本基于 JDK8,提供了?lambda?形式的调用,所以安装集成 MP3.0 要求如下:
JDK 8+Maven or Gradle
JDK7 以及下的请参考 MP2.0 版本,地址:2.0 文档
Release Spring Boot
Maven:
<dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>3.3.1.tmp</version></dependency>
Gradle:
compile group: ‘com.baomidou’, name: ‘mybatis-plus-boot-starter’, version: ‘3.3.1.tmp’ Spring MVC
Maven:
<dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus</artifactId> <version>3.3.1.tmp</version></dependency>
Gradle:
compile group: ‘com.baomidou’, name: ‘mybatis-plus’, version: ‘3.3.1.tmp’ 便宜香港vps
引入?MyBatis-Plus?之后请不要再次引入?MyBatis?以及?MyBatis-Spring,以避免因版本差异导致的问题。
01299923