使用@Autowired註解有錯誤提示

       使用Spring boot +mybatis框架時,在service實現類中使用Mapper類,給Mapper類添加@Autowired註解時發現有錯誤提示:could not autowire,no beans of "XXX" type found,但程序的編譯和運行都正常。spring 處理方式:mybatis 方案一:@Autowired(required = false) 
相關文章
相關標籤/搜索