主要参考这篇文档
https://mybatis.org/spring-boot-starter/mybatis-spring-boot-autoconfigure/zh/index.html
但是我的springboot用的版本是2.7,所以这里没有列举出来maven的version,可以去maven的远程仓库看一下具体有哪些版本,
https://central.sonatype.com/artifact/org.mybatis.spring.boot/mybatis-spring-boot-starter
其他的版本也可以在这里找到
最终选择了版本2.3.1
Spring Boot和Mybatis整合
最新推荐文章于 2024-07-07 13:51:15 发布