pom中mybatis需要版本
来源:2-5 Spring Boot开发三板斧

LGDI
2021-12-26
Could not find artifact org.mybatis.spring.boot:mybatis-spring-boot-starter:pom:unknown in aliyunmaven (https://maven.aliyun.com/repository/public)
mybatis依赖加上版本后就可以了。但是老师的视频为什么不需要加??
写回答
1回答
-
大目
2021-12-30
您好,课上没有使用mybatis-spring-boot-starter;而是用的通用mapper:
<dependency> <groupId>tk.mybatis</groupId> <artifactId>mapper-spring-boot-starter</artifactId> <version>2.1.5</version> </dependency>
详见:https://git.imooc.com/coding-358/user-center/src/master/pom.xml
也是有指定版本的哈。
00
相似问题