IDEA引入dao接口,Could not autowire. No beans of 'UserMapper' type found

@Autowired 註解換成 @Resource 註解,這兩個註解實現的功能是同樣的,只是來源於不一樣的包而已:java @Autowired來源於Spring的包, @Resource來源於java自帶的包.   轉載地址:https://blog.csdn.net/MrSpirit/article/details/77915427git 博主也是找了很久,終於找到了,我先去心肌梗塞一下子去。
相關文章
相關標籤/搜索