原文:mybatis-plus @Select注解的坑 The method's class, org.apache.ibatis.annotations.Select, is available from the following locations:

运行时报错信息如下: 当时就很懵逼,org.apache.ibatis.annotions.Select 这个包是有的啊,也可以点进去 随网上找了一下基本上没人遇到这个问题 最后折腾了一两天后 发现居然是 maven包冲突导致的,原因是 mybatis plus 自带 mybatis 所以不需要再引入mybatis依赖 解决方法: 删除 自项目中 mybatis 依赖即可 相关 mybatis 的 ...

2021-06-28 08:45 0 543 推荐指数:

查看详情

Mybatis-Plus通用Mapper CRUD之select

mybatis-plus框架提供了很多查询方法: 我们先讲这个selectById,selectBatchIds,selectByMap方法,后面讲条件构造器以及分页再讲; ------------------------------------------------------------------------------------------- ...

Wed Aug 26 22:32:00 CST 2020 0 1234
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM