mybatis@Param导包
时间: 2023-11-11 20:04:26 浏览: 111
Mybatis的一些实践
导包问题的解决方法是确保导入的是mybatis中的@Param注解,而不是spring框架中的@Param注解。在使用mybatis中的@Param注解时,正确的导入应该是import org.apache.ibatis.annotations.Param; [1。在IDEA等开发环境中,可以通过手动更改导入的包路径来解决这个问题。确保导入了mybatis中的@Param注解,而不是spring框架中的@Param注解,以避免出现导包错误的情况。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [@Param中,参数对象找不到的bug](https://blog.csdn.net/liu4461431/article/details/126852236)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [Spring中的@Param注解和Mybatis中的@Param注解](https://blog.csdn.net/WZH577/article/details/88990637)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [mybatis中@Param注解中遇到的问题——一定要注意import哪个包](https://blog.csdn.net/oldGreenHand46/article/details/119928582)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文