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