Could not autowire. No beans of 'DeptDao' type found
对于IDEA这个提示功能,度娘的回答基本上空前的一致,大多数的说法都是要求我们把这个提示功能关闭,对此对于我这种非处女座却有着比处女座更胜强迫症的程序员来说,这简直不能忍?????
多说都是废话,解决方法
方法1:在mapper文件上加@Repository注解,这是从spring2.0新增的一个注解,用于简化 Spring 的开发,实现数据访问
方法2:在mapper文件上加@Component注解,把普通pojo实例化到spring容器中,相当于配置文件中的<bean id="" class=""/>
对于其他的@Service @Controller该加在什么类上就不需要我这个菜鸡来阐明了吧?O(∩_∩)O哈哈~
Could not autowire. No beans of 'DeptDao' type found相关推荐
- SpringBoot报错:Could not autowire. No beans of ‘DiscussantMapper‘ type found
SpringBoot报错:Could not autowire. No beans of 'DiscussantMapper' type found 一.资源 @Mapper和@Repository注 ...
- idea中Could not autowire. No beans of 'xxxxMapper' type found.问题解决
idea中Could not autowire. No beans of 'xxxxMapper' type found.问题解决 解决方案: 建议给Mapper增加@Repository注解,并加入 ...
- Could not autowire. No beans of 'JavaMailSender' type found..md
Could not autowire. No beans of 'JavaMailSender' type found. 导入依赖 <dependency><groupId>o ...
- 【ActiveMQ】消息生产者自动注入报错:Could not autowire. No beans of 'JmsMessagingTemplate' type found
标签:public style hat and 报错 require core ota ati 使用ActiveMQ过程中,定义消息生产者: package com.s ...
- Could not autowire. No beans of ‘xxxMapper‘ type found.
在使用IDEA编写代码过程中,你可能会遇到这种情况: Could not autowire. No beans of 'xxxMapper' type found. 一般情况下,这种错误是不影响正常编 ...
- IntelliJ Idea取消Could not autowire. No beans of 'xxxx' type found的错误提示
2019独角兽企业重金招聘Python工程师标准>>> 1.问题描述 在Idea的spring工程里,经常会遇到Could not autowire. No beans of 'xx ...
- IDEA 报 「Could not autowire. No beans of ‘UserMapper‘ type found」错误解决方案
IDEA 报 「Could not autowire. No beans of 'UserMapper' type found」错误解决方案 参考文章: (1)IDEA 报 「Could not au ...
- IDEACould not autowire. No beans of 'xxxMapper' type found.
作为一名刚开始使用idea的新手,最近在使用maven+springMVC框架时遇到了这样一个问题:Could not autowire. No beans of 'xxxMapper' type f ...
- Could not autowire. No beans of 'StudentService' type found
Controller层 错误提示:Could not autowire. No beans of 'StudentService' type found 原因一:可能是你的Spring.xml配置文件 ...
最新文章
- 聊聊三维重建-条纹法之相位法(一)
- 他89岁,拿下人生第3个博士学位,横跨医学物理学,只为“实现儿时梦想”
- Html5本地存储和本地数据库
- 嵌入式操作系统的主要特点都有哪些
- C#趣味程序---车牌号判断
- 关于C语言中继承和多态的实现
- linux终端怎么设置monaco,Monaco Editor 使用指南
- 2016年1月书单推荐
- 你从 Kotlin 中 get 了多少技能了?
- 染整色差技术分析大全
- Swift数据类型简介
- python程序开发入门教程_史上最全Python快速入门教程,满满都是干货
- 智慧城市发力,区块链助力土木建设数据存储
- 百度地图api使用时标注图标显示不出来
- PHP strpos 函数源码分析
- 方便地边看便翻译原版pdf文章(wps)
- day52 css选择器和特性
- uni-app嵌入其他页面(阿里邮箱为例)
- html5 拉窗帘 效果,jQuery和CSS3超酷3D拉窗帘式滚动导航特效
- PythonPyCharm
热门文章
- 【课题总结】OpenCV 抠图项目实战(6)色彩范围抠图
- centos6 yum快速安装mysql_centos6.10 yum安装mysql 5.6-Go语言中文社区
- pq 中m函数判断嵌套_压轴题的热点,二次函数与几何的结合,谁会谁吃香
- codesys raspberry pi_11月7日|Pi第四次减产来袭?4点浅析中文区用户关心的问题
- 电脑入门完全自学手册_「新书推荐」新能源汽车维修完全自学手册
- 错误之data_insertt() takes 1 positional argument but 2 were given解决方法
- 位、字,字节与KB的关系
- monkey自动化测试移动app 操作指南——真机 安卓(Android)app测试
- IndexError: list index out of range--Python报错原因及解决办法
- testng使用DataProvider+Excel实现DDT