使用@Autowired注解有错误提示

       使用Spring boot +mybatis框架时,在service实现类中使用Mapper类,给Mapper类添加@Autowired注解时发现有错误提示:could not autowire,no beans of "XXX" type found,但程序的编译和运行都正常。spring 处理方式:mybatis 方案一:@Autowired(required = false) 
相关文章
相关标签/搜索