1.问题描述
想引用@Select注解但是发现写完后报红
2.解决方法
1.在pom.xml中添加依赖:
<dependency> <groupId>org.apache.ibatis</groupId> <artifactId>ibatis-core</artifactId> <version>3.0</version> </dependency>
等它下载完,或者刷新一下maven
2.alt+enter可以import class
如图:
它就不报红啦!