maven仓库查询网址:MavenRepository
mybatis:MyBatis基础包
logback-classic:日志依赖
<!-- https://mvnrepository.com/artifact/org.mybatis/mybatis -->
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>3.5.6</version>
</dependency>
<!-- https://mvnrepository.com/artifact/ch.qos.logback/logback-classic -->
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.3.0-alpha5</version>
<scope>test</scope>
</dependency>
刷新maven等待自动下载
libraries中有了所有导入的包表示依赖引入完成

本文介绍了如何在Maven仓库中查找并引入MyBatis和Logback的经典依赖。通过指定groupId、artifactId和version,可以轻松添加到项目的pom.xml文件中,实现MyBatis的基础功能和Logback的日志记录。在添加依赖后,只需刷新Maven,等待自动下载完成,即可在libraries中看到已导入的包。
553

被折叠的 条评论
为什么被折叠?



