mybatis-plus分页Invalid bound statement (not found): com.gw.ycny.mapper.CoalHtDcInfoMapper.getInfo
时间: 2023-11-07 16:02:33 AIGC 浏览: 174
引用:根据你提供的代码和运行截图,出现的错误是"Invalid bound statement (not found): com.example.demo_login.mapper.UserMapper.getInfo"。这个错误通常是由于mybatis无法找到对应的映射语句所导致的。你可以检查以下几点来解决这个问题:
1. 确保mybatis的mapper-locations配置正确,指向了mapper映射xml文件所在的路径。
2. 确保xml文件的命名与mapper接口的命名一致,并且在xml文件中正确定义了相应的映射语句。
3. 检查xml文件的位置是否正确,可以尝试将xml文件放置在与mapper接口相同的文件夹下。
同时,根据你提供的引用,如果你的xml文件未找到,也可以尝试将xml文件放置在mapper接口的同一文件夹下。这可以作为一种应急处理方法来解决找不到xml文件的问题。
相关问题
Invalid bound statement (not found): com.my.yanli.mapper.UserMapper.getUserById
Invalid bound statement (not found): com.my.yanli.mapper.UserMapper.getUserById错误可能是由于mybatis-plus配置问题导致的。解决这个问题的方法是检查以下几点:
1. 确保在mapper接口中存在名为getUserById的方法。
2. 确保在mapper.xml文件中存在对应的<select>语句,且id为getUserById。
3. 确保mybatis-plus的配置文件中已经正确指定了mapper接口所在的包路径。
阅读全文
相关推荐
















