zoukankan      html  css  js  c++  java
  • "Invalid bound statement (not found): com.sitech.admin.dao.TbOpenAbilityInfoDao.findAbilityReadyUp"mybatis配置文件bug

    问题描述:

    通常在正常启动某项工程后操作某个功能时抛出的bug:

    org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.sitech.admin.dao.TbOpenAbilityInfoDao.findAbilityReadyUp
    at org.apache.ibatis.binding.MapperMethod$SqlCommand.<init>(MapperMethod.java:184)
    at org.apache.ibatis.binding.MapperMethod.<init>(MapperMethod.java:38)
    at org.apache.ibatis.binding.MapperProxy.cachedMapperMethod(MapperProxy.java:49)
    at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:42)
    at $Proxy30.findAbilityReadyUp(Unknown Source)

    根本原因是没有找到id为findAbilityReadyUp的sql语句,才抛出这样的错误,回归——》查找

    1,是否将所对应的xml在mybatis-config-mysql.xml总文件中有声明:

     <mapper resource="mybatis/mysql/aaa.xml"/>

    2,再次确认sql配置文件中是否有id为findAbilityReadyUp的sql语句。

    这个问题一定是关于sql的配置文件出了问题,细心点很容易排除。

    行走在设计师的路上!
  • 相关阅读:
    使用过Redis,我竟然还不知道Rdb
    系统的讲解
    系统的讲解
    我眼中的 RPC
    Swoole Timer 的应用
    场景调研
    二维数组环求最大子数组
    《你的灯亮着吗》 阅读笔记三
    《你的灯亮着吗》 阅读笔记二
    《你的灯亮着吗》阅读笔记一
  • 原文地址:https://www.cnblogs.com/yolanda-lee/p/4551412.html
Copyright © 2011-2022 走看看