SpringBoot @Mapper注解导包失败问题

import org.apache.ibatis.annotations.Mapper;

如果是上面这个类导入失败,升级下mybatis-spring-boot-starter的jar包版本

<dependency>
   <groupId>org.mybatis.spring.boot</groupId>
   <artifactId>mybatis-spring-boot-starter</artifactId>
   <version>1.3.0</version>
</dependency>

更改后

<dependency>
   <groupId>org.mybatis.spring.boot</groupId>
   <artifactId>mybatis-spring-boot-starter</artifactId>
   <version>1.3.2</version>
</dependency>

我的问题就解决了


版权声明:本文为wyouwd1原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。