103 Star 639 Fork 464

朝雨忆轻尘(Louis) / mango-platform

 / 详情

你好,有个报错帮忙看看

Backlog
Opened this issue  
2021-11-18 11:15

你好,我在学习到第10章“业务功能实现”时,运行代码时报了一个错,麻烦你帮忙看一下。

org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.louis.mango.admin.dao.SysUserRoleMapper.findUserRoles
at org.apache.ibatis.binding.MapperMethod$SqlCommand.(MapperMethod.java:227) ~[mybatis-3.4.6.jar:3.4.6]
at org.apache.ibatis.binding.MapperMethod.(MapperMethod.java:49) ~[mybatis-3.4.6.jar:3.4.6]
at org.apache.ibatis.binding.MapperProxy.cachedMapperMethod(MapperProxy.java:65) ~[mybatis-3.4.6.jar:3.4.6]
at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:58) ~[mybatis-3.4.6.jar:3.4.6]
at jdk.proxy2/jdk.proxy2.$Proxy70.findUserRoles(Unknown Source) ~[na:na]
at com.louis.mango.admin.service.impl.SysUserServiceImpl.findUserRoles(SysUserServiceImpl.java:164) ~[classes/:na]
at com.louis.mango.admin.service.impl.SysUserServiceImpl.findUserRoles(SysUserServiceImpl.java:128) ~[classes/:na]
at com.louis.mango.admin.service.impl.SysUserServiceImpl.findPage(SysUserServiceImpl.java:112) ~[classes/:na]
at com.louis.mango.admin.service.impl.SysUserServiceImpl$$FastClassBySpringCGLIB$$254e23a8.invoke() ~[classes/:na]

谢谢

Comments (2)

triplel created任务

我运行时也出现你这个错误了,我后来在我mango-admin工程的application.yml添加了下面的配置后就好了
mybatis:
mapper-locations: classpath:com/louis/mango/admin/sqlmap/*.xml

另外,我用的mybatis是:


org.mybatis.spring.boot
mybatis-spring-boot-starter
1.3.2

Sign in to comment

Status
Assignees
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Planed to start   -   Planed to end
-
Top level
Priority
参与者(2)
6508003 wen bai 0301 1638186210
Java
1
https://gitee.com/liuge1988/mango-platform.git
git@gitee.com:liuge1988/mango-platform.git
liuge1988
mango-platform
mango-platform

Search