Skip to content

依赖引入

  • pom.xml(Maven)或 build.gradle(Gradle)中添加依赖
  • 优先使用 Spring Boot Starter 自动整合包
  • 处理版本冲突、依赖排除
  • 多环境区分依赖(可选)
<dependency>
    <groupId>org.mybatis.spring.boot</groupId>
    <artifactId>mybatis-spring-boot-starter</artifactId>
</dependency>