工程啟動報錯
A component required a bean of type ‘com.example…’ that could not be found
解決辦法一:
1、再啟動類添加mapper包掃描注解即可
@MapperScan(“com.example.firstspringboot.dao”)
解決辦法二:
在每個mapper接口上添加@mapper注解
轉載自:https://blog.csdn.net/qq_34206683/article/details/86179789