ClassPathMapperScanner#registerFilters这内里添加一个总是返回true的TypeFilter:
if (acceptAllInterfaces) { // default include filter that accepts all classes addIncludeFilter((metadataReader, metadataReaderFactory) -> true); }关于Mapper接口生成对象:
1.必须是一个对象(署理对象,JDK动态署理Proxy.newProxyInstance(mapperInterface.getClassLoader(), new Class[] { mapperInterface }, mapperProxy))