报错:
使用@Select等注解,mapper层异常
java.lang.NoClassDefFoundError: org/apache/ibatis/annotations/Mapper
原因:
MyBatis对应maven依赖有误
解决方法:
依赖改为
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>3.4.5</version>
</dependency>