我在配置ssm框架时,对service层测试报出了这个异常,遂百度查了一些 解决方法,以下转发借鉴博客

转自:https://blog.csdn.net/zsy3313422/article/details/52594082#comments

解决方法如下:

1、将*Mapper.xml文件夹放在resource文件夹下,但是这种方式会打破原来的代码结构,如果团队中有人用eclipse有人用IntelliJ,这样就比较麻烦了;

2、在maven项目的pom.xml中build标签下插入:

<resources>
      <resource>
        <directory>src/main/java</directory>
        <includes>
          <include>**/*.xml</include>
        </includes>
      </resource>
    </resources>

手工将src下所有xml文件引入编译;
3、进入Project Structure -> Modules中,将你的mapper目录设置为Resouce类型:

到最后,都试了 并不行,此时  别着急  。我觉得你应该在检查以下自己的配置文件

我发现我的配置文件  mapper配置文件 在复制的另一个,对应的实体类全路径错了。粗心大意啊!!!!

个人觉得 出现这种错误只能是这几个问题了,希望能帮到你

IDEA报Invalid bound statement (not found)错误解决办法相关推荐

  1. Invalid bound statement (not found)错误解决办法

    SpringBoot在整合mybatis的mapper文件时容易出现的一个问题.今天由于想把原先放在resource目录下的mapper目录放到java目录中,修改了下mapper路径,结果报出了这个 ...

  2. MyBatis报Invalid bound statement (not found)错误

    一.场景 本项目使用mybatis-plus作为orm框架,使用的是以下jar包 compile 'com.baomidou:mybatis-plus-boot-starter:3.4.0' 都知道m ...

  3. springboot invalid bound statement (not found)终极解决办法

    解决org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)问题 org.apache.ibati ...

  4. springboot报错Invalid bound statement (not found) 的解决办法

    1.经排查所有的配置都没有问题,最后发现是项目编译后target文件夹中没有加载映射文件,解决方案,在pom中加入以下配置(但是这种方案一般要求在创建项目时就在pom中加入): <build&g ...

  5. Invalid bound statement (not found) 终极解决办法

    网上已经有很多文章说明可能导致这个报错的原因,无非是以下几种: 1.检查xml文件的namespace是否正确 2.Mapper.java的方法在Mapper.xml中没有,然后执行Mapper的方法 ...

  6. 解决org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)错误

    解决org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)错误 2018年07月23日 16:5 ...

  7. Invalid bound statement (not found)错误的原因和解决办法

    Invalid bound statement (not found)错误的原因和解决办法 在maven项目中有专门的resources文件夹用来存放各种配置文件,但是不一定都会放在里面,如果配置文件 ...

  8. 记录若依启动报Invalid bound statement (not found): com.xbo.system.mapper.SysConfigMapper.selectConfigList问题

    一.问题如图 二.问题描述 在使用若依RuoYi-Vue开发一段时候后,某天更新代码启动报:Invalid bound statement (not found): com.xbo.system.ma ...

  9. SpringBoot整合mybatis时报Invalid bound statement (not found)错误的可能原因

    Invalid bound statement (not found)这个问题的实质就是mapper接口和mapper.xml没有映射起来 常见的低智商问题有下列几个 1.mapper.xml 里面的 ...

  10. springboot报Invalid bound statement (not found):

    Springboot整合MyBaties,在IDEA启动时报错Invalid bound statement (not found),是mapper和对应的xml文件无法建立映射关系,一般从如下几方面 ...

最新文章

  1. pandas数据转换时遇到不能转换的数据转为NaN的参数设置errors='coerce'
  2. 每日一皮:用户“这个项目很容易嘛”~
  3. 曲线 线性回归_机器学习笔记 线性回归
  4. Arthas watch 命令使用指南
  5. mysql的jdbc版本_【jdbc】Mysql 8版本jdbc设置
  6. 聚集索引和非聚集索引
  7. css根据屏幕大小切换样式
  8. 为什么html中li浮动,相对定位下的绝对定位下的li为什么不能浮动??
  9. CityMaker SDK与三维GIS城市
  10. 10年经验17张图带你进入gitflow企业项目代码版本管理的最佳实践
  11. copy的过去式_[copy是什么意思中文翻译成]copy是什么意思中文翻译
  12. Python菜鸟教程学习笔记
  13. 3D图像线性插值算法实现
  14. ffmpeg视频录制
  15. 网络中的IP地址(包括私网地址)
  16. LED办公楼宇照明节能方案及城市夜景照明节能方案
  17. Twitter开发者账号【推特开发者文档系列10】——API参考索引
  18. java高并发编程--03--线程间通信
  19. 如何创作一款商业级的安卓独立应用
  20. windows、Linux、VxWorks 下errno含义

热门文章

  1. Ubuntu 14.04 引导修复(Boot Repair)(双系统修复一)
  2. 《中国品牌故事》讲述中节能品牌故事:皓日初升
  3. gdb 查看是否 栈溢出_64位Linux栈溢出教程
  4. 一级域名、二级域名、三级域名区分
  5. ue4是什么意思_ue4主要是做什么用的
  6. 小米蓝牙键盘怎么连接_【米物蓝牙双模键盘使用总结】连接|操作|按键_摘要频道_什么值得买...
  7. 解决异常:Premature end of chunk coded message body: closing chunk expected
  8. 《时代周刊》:投资者为何争相购买虚拟土地?
  9. 3.4 智能手表整体结构设计总结
  10. Faster RCNN代码详解(三):数据处理的整体结构