一、异常内容
***************************
APPLICATION FAILED TO START
***************************
Description:
Parameter 0 of constructor in com.xxx.scenario.service.impl.AccountServiceImpl required a bean of type 'com.xxx.scenario.mapper.VehicleTypeMapper' that could not be found.
Action:
Consider defining a bean of type 'com.xxx.scenario.mapper.VehicleTypeMapper' in your configuration.
进程已结束,退出代码为 1
二、异常说明
在Spring框架中,@MapperScan注解用于自动扫描Mapper接口并创建相应的代理实例。当您遇到“Parameter 0 of constructor in xxx required a bean of xxx that could not be found”这样的错误时