注解@Param引用不到,ibatis.annotations.Param 标红需要引入什么包呢?

版权声明:本文为博主原创文章,欢迎转载,转载请注明出处。觉得此文有用的,不嫌麻烦的,就留个言呐,或者点个赞呐,要是嫌麻烦呢,也麻烦点个赞嘛 https://blog.csdn.net/qq_40147863/article/details/88636193

注解@Param引用不到,ibatis.annotations.Param 标红需要引入什么包呢?

我在使用 MyBatis Generator 插件生成文件的时候,发现 @Param 报错,引入的

import org.apache.ibatis.annotations.Param; 红色报错,找不到

解决方法:

在 pom 中添加依赖

<!-- https://mvnrepository.com/artifact/org.apache.ibatis/ibatis-core -->
<dependency>
    <groupId>org.apache.ibatis</groupId>
    <artifactId>ibatis-core</artifactId>
    <version>3.0</version>
</dependency>

刷新 ReImport 就行啦

猜你喜欢

转载自blog.csdn.net/qq_40147863/article/details/88636193