xxxx Mapper that could not be found.

  1. MapperScan问题配置正确的路径:
@Configuration
@MapperScan(basePackages = {
    
    "com.xxx.xxx.mapper"})
public class BotEngineDataSourceConfig {
    
    

子文件夹下面的路径扫描,要加上一级的通配符:

  1. String[] strings = {"classpath*:mapping/*.xml", "classpath*:mapping/*/*.xml"};