mybatisplus-start 3.4.2
springboot 2.5.2
mapper中自定义方法,返回体自定义,sql写到xml中就会报Invalid bound statement (not found),如果用@select就可以正常执行
mapper中自定义方法,返回数据库实体,写到xml中无错
确认只引入了mybatisplus start,应该无jar冲突
确认yml中已经配置mapperlocations
确认启动类已添加mapperscan
有没有遇到相同问题呢
附图:
mapper
xml
yml
target
mybatisplus报Invalid bound statement (not found)
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-