About mybatis --- @Select and other related operation comments report red and error

Problem:
@Select(...) and other comments report a red error. Using the online delete mybatis file to re-import the project can’t be solved. The custom @Select cannot be successfully imported because a Rentention cannot import dependencies.


Solution:
Add the following dependencies in pom.xml:

<dependency>
      <groupId>org.apache.ibatis</groupId>
      <artifactId>ibatis-core</artifactId>
      <version>3.0</version>
    </dependency>

(The premise is that there is no lack of other dependencies)
Re-import the project, find that @Select can import class, solve


											感谢收阅

Guess you like

Origin blog.csdn.net/Forest_2Cat/article/details/109276349
Recommended