其他分享
首页 > 其他分享> > Mybatis开发中的常用Maven配置

Mybatis开发中的常用Maven配置

作者:互联网

Mybatis导入Maven配置

<!-- MyBatis导入 -->
<dependency>
    <groupId>org.mybatis</groupId>
    <artifactId>mybatis</artifactId>
    <version>3.5.6</version>
</dependency>

MySQL数据库连接Maven配置

<!-- mysql数据库连接导入-->
<dependency>
    <groupId>mysql</groupId>
    <artifactId>mysql-connector-java</artifactId>
    <version>5.1.47</version>
</dependency>

junit单元测试Maven配置

<!-- junit测试 -->
<dependency>
    <groupId>junit</groupId>
    <artifactId>junit</artifactId>
    <version>4.13.2</version>
</dependency>

C3P0数据源Maven配置

<!-- 导入C3P0数据源 -->
<dependency>
    <groupId>com.mchange</groupId>
    <artifactId>c3p0</artifactId>
    <version>0.9.5.2</version>
</dependency>

Maven的Lombok配置

<!-- https://mvnrepository.com/artifact/org.projectlombok/lombok -->
<dependency>
    <groupId>org.projectlombok</groupId>
    <artifactId>lombok</artifactId>
    <version>1.18.24</version>
</dependency>

标签:常用,配置,Maven,mybatis,mysql,Mybatis,junit
来源: https://www.cnblogs.com/likeLfcf/p/16684751.html