关于mybatis-plus:报错-Invalid-bound-statement-not-found-comxxxmapperxxx

Mybaits-puls我的项目启动时报错 Invalid bound statement (not found): com.xxx.mapper.xxx
起因
我的项目启动时未找到mapper中的办法

解决办法:
在springboot或mybaits-puls的配置文件中加上:

mybatis-plus.mapperLocations=classpath:XXX/XXXX/mapper/**/*.xml  

地址最终指向你的xml文件即可

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理