Mybatis和Mybatis Plus的jar包/maven文件
Mybatis的jar包/maven文件
1、jar包: mybatis-x.x.x.jar
2、maven文件:
<!--spring的maven文件-->
<!--mybatis包-->
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>x.x.x</version>
</dependency>
<!--mybatis-spring包,用于整合mybatis和spring-->
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-spring</artifactId>
<version>3.0.0</version>
</dependency>
<!--数据库连接驱动-->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.21</version>
</dependency>
<!--druid数据库连接池-->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>1.1.6</version>
</dependency>
<!--——————————————————————————————————————————————————分割线————————————————————————————————————————————————————-->
<!--springBoot的maven文件-->
<!-->mybatis关键依赖<-->
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>1.3.1</version>
</dependency>
<!-->mysql关键依赖<-->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
Mybatis Plus的jar包/maven文件
1、jar包:mybatis-plus-xxx.jar(少用)
2、maven文件
<!--spring的maven文件-->标签:11,200,java,jar,connector,maven,mybatis,mysql,MyBatis From: https://blog.51cto.com/u_15893533/5890218
<!--mybatis plus包-->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus</artifactId>
<version>最新版本</version>
</dependency>
<!--数据库连接驱动-->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.21</version>
</dependency>
<!--druid数据库连接池-->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>1.1.6</version>
</dependency>
<!--——————————————————————————————————————————————————分割线————————————————————————————————————————————————————-->
<!--springBoot的maven文件-->
<!-->mybatis plus关键依赖<-->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>最新版本</version>
</dependency>
<!-->mysql关键依赖<-->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>