首页 > 其他 > 详细

Mybatis报错: Invalid bound statement (not found)

时间:2020-05-28 19:58:34      阅读:143      评论:0      收藏:0      [点我收藏+]

 

异常:

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

 

Mybatis报错: Invalid bound statement (not found)

原文:https://www.cnblogs.com/smileblogs/p/12982633.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!