在測試時,無法注入mapper接口,提示Could not autowire. No beans of 'SysFwListMapper' type found.
在測試時,無法注入mapper接口,提示Could not autowire. No beans of 'SysFwListMapper' type found.
在測試時,無法注入mapper接口,提示Could not autowire. No beans of 'SysFwListMapper' type found.
2020-01-10
舉報
2020-01-10
可以不用再mapper接口上加@Repository。在啟動類或者配置類中配置對Mapper接口包掃描路徑即可,配置的注解為@MapperScan
2020-05-10
加個@Repository或者Component就行
2020-01-10
你的userMapper中有沒有