关注JEECG发展历程 关注最新动态和版本, 记录JEECG成长点滴 更新日志 - 技术支持 - 招聘英才

JEECG最新版本下载 JEECG智能开发平台 - 显著提高开发效率 常见问题 - 入门视频 - 参与开源团队

商务QQ: 69893005、3102411850 商务热线(5*8小时): 010-64808099 官方邮箱: jeecgos@163.com

查看: 10212|回复: 4

(not found): org.jeecg.modules.ngalain.mapper.NgAlainMapper.selectPage

[复制链接]
发表于 2019-10-14 15:58:33 | 显示全部楼层 |阅读模式
使用代码生成,根据说明文档,分别放在对于的目录下,后台显示错误
2019-10-14 15:28:37.377 [http-nio-8080-exec-4] ERROR o.jeecg.common.exception.JeecgBootExceptionHandler:54 - Invalid bound statement (not found): org.jeecg.modules.ngalain.mapper.NgAlainMapper.selectPage
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): org.jeecg.modules.ngalain.mapper.NgAlainMapper.selectPage

发表于 2019-12-3 15:38:57 | 显示全部楼层
把代码放在modules包下就可以了,具体原理不清楚,还在看
发表于 2020-5-17 10:28:32 | 显示全部楼层
看 jeecg-boot-parent 下面的 application-local.properites
mybatis-plus.mapper-locations[0]=classpath*:/mapper/**/*.xml
mybatis-plus.mapper-locations[1]=classpath*rg/jeecg/modules/**/xml/*Mapper.xml

这里指定了扫描路径
发表于 2020-5-23 12:17:20 | 显示全部楼层
在MybatisPlusConfig里修改扫描配置
发表于 2020-5-25 09:17:47 | 显示全部楼层
大家有没有遇到过打包时找不到字符的情况  就是无法找到common模块的类
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表