A component required a bean of type ‘com.example...‘ that could not be found解決辦法

啓動工程後控制檯報錯顯示A component required a bean of type ‘com.example.demo2.dao.AdminDao’ that could not be found. 解決辦法: 方法一:在每個mapper接口上添加上註解@Mapper 方法二:在Demo2Application.java文件中添加註解@Mapper Scan(「這裏填入mapper接口
相關文章
相關標籤/搜索