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
  • 相关阅读:
    JavaScript学习-4——DOM对象、事件
    JavaScript学习-3——数组、函数、递归
    CSS样式学习-3、轮廓、伪类/元素、display-flex布局
    目前为止学习过的循环解析过程
    早期自学jQuery-二事件
    Hive问题 记录
    `how to install hive
    mongodb读取测试
    reading list
    HIVE相关命令记录
  • 原文地址:https://www.cnblogs.com/smileblogs/p/12982633.html
Copyright © 2011-2022 走看看