org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'xxx': Unsatisfied dependency expressed through field 'baseMapper';
报错如下:
解决方法: 在启动类中加:
@MapperScan("com.mapper")
就是扫描mapper包
重启, 启动成功!
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'xxx': Unsatisfied dependency expressed through field 'baseMapper';
报错如下:
解决方法: 在启动类中加:
就是扫描mapper包
重启, 启动成功!