在初接触Springboot时,报错:
No MyBatis mapper was found in ‘[…]’ package
从别人处复制pom文件,其中引入了通用mapper,如下
<!-- 通用mapper -->
<dependency>
<groupId>tk.mybatis</groupId>
<artifactId>mapper-spring-boot-starter</artifactId>
<version>2.1.5</version>
</dependency>
注释后正常