SpringBoot项目中,使用 MyBatisPlus 自动生成代码,在程序启动时报错 required a single bean, but 2 were found

问题如标题描述,原因是配置的 @MapperScan 范围过大,需将其设置为 mapper 所在目录

原文地址:https://www.cnblogs.com/m2492565210/p/14821334.html