zoukankan      html  css  js  c++  java
  • Mybatis报错: Invalid bound statement (not found)

    异常:

    org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.power.manager.dal.mapper.SysUserMapper.selectLoginUserDto
        at com.baomidou.mybatisplus.core.override.MybatisMapperMethod$SqlCommand.<init>(MybatisMapperMethod.java:242)
        at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.<init>(MybatisMapperMethod.java:54)
        at com.baomidou.mybatisplus.core.override.MybatisMapperProxy.lambda$cachedMapperMethod$0(MybatisMapperProxy.java:65)
        at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705)
        at com.baomidou.mybatisplus.core.override.MybatisMapperProxy.cachedMapperMethod(MybatisMapperProxy.java:65)
        at com.baomidou.mybatisplus.core.override.MybatisMapperProxy.invoke(MybatisMapperProxy.java:60)
        at com.sun.proxy.$Proxy106.selectLoginUserDto(Unknown Source)

    原因:

    mybatis-plus:
      type-aliases-package: com.power.manager.dal
      mapper-locations: classpath:com.power.manager.dal.mapper.*/*.xml
      global-config:
        db-config:
          db-type: mysql

    改后:

    mybatis-plus:
      type-aliases-package: com.power.manager.dal
      mapper-locations: classpath:com.power.manager.dal.mapper/*/*.xml
      global-config:
        db-config:
          db-type: mysql
  • 相关阅读:
    C#随笔
    C# 程序间通信的各种途径及解析
    C#控件根据窗体改变大小
    c# SqlHelper Class
    初始Java
    函数基础
    基本数据类型的高级特性:
    python基础
    C#double转化成字符串 保留小数位数, 不以科学计数法的形式出现。
    Oracle使用dblink导入数据
  • 原文地址:https://www.cnblogs.com/smileblogs/p/12982633.html
Copyright © 2011-2022 走看看