MapperScan代理Servcie导致spring注入构造提示一对多
注解@MapperScan 配置的包路径指向了顶层的package api.data.processing
api.data.processing.service 下的接口生成了代理对象
然后本身的impl对象也存在.
在注入的时候提示要用
Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans, or using @Qualifier to identify the bean that should be consumed
来指定bean
经过排查发现将 api.data.processing 指向为 api.data.processing.dao层修复完成