SpringBoot中使用@Mapper注解需要哪个包

SpringBoot中使用@Mapper注解需要哪个包

场景

在Eclipse中新建springBoot项目后,要使用@Mapper注解。

实现

打开pom.xml

添加

org.mybatis.spring.boot

mybatis-spring-boot-starter

1.1.1

然后导包时:

import org.apache.ibatis.annotations.Mapper;

相关推荐

鄂尔多斯
365bet365备用网站

鄂尔多斯

📅 08-09 ❤️ 398
新车注册滴滴要多久?
365bet365备用网站

新车注册滴滴要多久?

📅 08-05 ❤️ 173
王者荣耀经验卡购买方法 王者荣耀经验卡怎么买