Consider defining a bean of type '*.*.*' in your configuration注入失败问题

方法一:

mapper层的注解改为:

@Mapper

方法二:

在Application启动类上添加注解

@MapperScan(value = "maper包路径")

猜你喜欢

转载自blog.csdn.net/weixin_42254857/article/details/82689833