1.问题
未绑定状态,也就是说你的xml文件没有被找到。

2.解决方法
需要在 yml或properties中配置 Mapper映射文件
mybatis-plus:
#配置Mapper映射文件
mapper-locations: classpath*:/mapper/*Mapper.xml
# 配置MyBatis数据返回类型别名(默认别名是类名)
type-aliases-package: com.yeb.server.pojo
configuration:
# 自动驼峰命名
map-underscore-to-camel-case: false
本文介绍了当遇到XML文件未绑定的问题时的解决方法。主要是在yml或properties配置文件中指定Mapper映射文件的位置,同时配置了MyBatis的数据返回类型的别名。
2704

被折叠的 条评论
为什么被折叠?



