在Spring Boot项目中集成tk-mybatis,可以使用以下最新的依赖:

<dependencies>
    <!-- Spring Boot Starter -->
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter</artifactId>
    </dependency>
    
    <!-- MyBatis -->
    <dependency>
        <groupId>org.mybatis.spring.boot</groupId>
        <artifactId>mybatis-spring-boot-starter</artifactId>
    </dependency>
    
    <!-- tk-mybatis -->
    <dependency>
        <groupId>tk.mybatis</groupId>
        <artifactId>mapper-spring-boot-starter</artifactId>
        <version>2.1.5</version>
    </dependency>
</dependencies>

这些依赖将会自动引入Spring Boot Starter和MyBatis的相关依赖,以及tk-mybatis的最新版本。你可以根据需要修改版本号

SpringBoot集成tk-mybatis最新依赖

原文地址: http://www.cveoy.top/t/topic/icci 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录