有这样的编译提示粗不会影响我们的运行,但是对于代码强逼症的你,看着是否难受吧。那么我告诉大家怎么规范的使用Mapper接口

Spring中使用@Autowired有Could not autowire.No beans of 编译异常提示。
很简单 我们只需在Mapper接口层加入@Repository注解即可

Spring中使用@Autowired有Could not autowire.No beans of 编译异常提示。
这样一来就没有编译错误提示了。
Spring中使用@Autowired有Could not autowire.No beans of 编译异常提示。

相关文章: