binrongsd 发表于 2019-10-14 15:58:33

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

使用代码生成,根据说明文档,分别放在对于的目录下,后台显示错误
2019-10-14 15:28:37.377 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

miopy@jeecg 发表于 2019-12-3 15:38:57

把代码放在modules包下就可以了,具体原理不清楚,还在看

乔安 发表于 2020-5-17 10:28:32

看 jeecg-boot-parent 下面的 application-local.properites
mybatis-plus.mapper-locations=classpath*:/mapper/**/*.xml
mybatis-plus.mapper-locations=classpath*:org/jeecg/modules/**/xml/*Mapper.xml

这里指定了扫描路径

gqh1718 发表于 2020-5-23 12:17:20

在MybatisPlusConfig里修改扫描配置

vring 发表于 2020-5-25 09:17:47

大家有没有遇到过打包时找不到字符的情况就是无法找到common模块的类
页: [1]
查看完整版本: (not found): org.jeecg.modules.ngalain.mapper.NgAlainMapper.selectPage