MyBatis绑定错误:Invalid bound statement (not found)

mybatis-plus:
  tenant-enable: ture
  mapper-locations: classpath:/mapper/**/*Mapper.xml
  global-config:
    banner: false
    db-config:
      id-type: auto
      field-strategy: NOT_EMPTY

关键点:

mapper-locations: classpath:/mapper/*/Mapper.xml

所有的mapper映射文件

mybatis.mapper-locations=classpath*:com/springboot/mapper/*.xml

或者resource下的mapper映射文件

mybatis.mapper-locations=classpath*:mapper/**/*.xml
最后修改:2020 年 12 月 15 日
如果觉得我的文章对你有用,请随意赞赏