一般都是xml映射錯誤
看下自己的映射路徑
還有對應xml裏面的namespace的對應路徑
如果都沒錯
那就可能和我一下,創建xml文件時,沒有給文件加上.xml後綴
mybatis:
mapper-locations: classpath:mapping/*Mapper.xml
type-aliases-package: com.trueway.zhdwapp.user.entity.Student
configuration:
map-underscore-to-camel-case: true