baomidou / mybatis-plus

An powerful enhanced toolkit of MyBatis for simplify development
https://baomidou.com
Apache License 2.0
16.4k stars 4.31k forks source link

[错误报告]: 指定scanBasePackages对于@Mapper注解扫描不生效 #6463

Closed luooyii closed 1 month ago

luooyii commented 1 month ago

确认

当前程序版本

3.5.7

问题描述

指定包扫描基类,对于@Mapper注解扫描失效,扫描package依然基于启动类所在包。在debug模式下强行修改packages值,依然无法获取到mapper

提供最小复现实现 https://github.com/luooyii/package-scan-error

image

image

详细堆栈日志

No response

luooyii commented 1 month ago

关联问题 #5350 #5930

miemieYaho commented 1 month ago

image