当前使用版本(必须填写清楚,否则不予处理)

com.baomidou mybatis-plus-boot-starter 3.2.0

该问题是怎么引起的?(最新版上已修复的会直接close掉)

在Mapper.xml中自己定义一个select 调用报找不到映射

重现步骤

报错信息

org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.example.demo.mapper.WhOverallrcvandshpMapper.testSelect

Comment From: miemieYaho

看文档

Comment From: 18818542910

所有的配置都有配置,但是目前就是无法实现,我也觉得很奇怪

Comment From: 18818542910

mybatis-plus: mapper-locations: classpath*:com/example/demo/mapper/xml/WhOverallrcvandshpMapper.xml typeAliasesPackage: com.example.demo.entity global-config: id-type: 2 field-strategy: 2 db-column-underline: true refresh-mapper: true configuration: map-underscore-to-camel-case: true cache-enabled: false

Comment From: 18818542910

@MapperScan("com.example.demo.mapper")

Comment From: zhangjunp

这个是怎么解决的呢,我也遇见这个问题了

Comment From: wangsenyan

我也遇到了,用的3.4.1