报错 Invalid bound statement (not found): com.xxx.mapper.xxx
文章目录
Mybaits-puls项目启动时报错 Invalid bound statement (not found): com.xxx.mapper.xxx
原因:
项目启动时未找到mapper中的方法
解决办法:
在springboot或mybaits-puls的配置文件中加上:
mybatis-plus.mapperLocations=classpath:XXX/XXXX/mapper/**/*.xml 地址最终指向你的xml文件即可
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论