Controller层 错误提示:Could not autowire. No beans of ‘StudentService’ type found

原因一:可能是你的Spring.xml配置文件里面自动扫描包的位置出错了

如图,把自动扫描的位置固定在controller里面了,所以扫描不到其他的文件,应把路径范围扩大

原因二:service层的实现类没有加@Service

Could not autowire. No beans of 'StudentService' type found相关推荐

  1. SpringBoot报错:Could not autowire. No beans of ‘DiscussantMapper‘ type found

    SpringBoot报错:Could not autowire. No beans of 'DiscussantMapper' type found 一.资源 @Mapper和@Repository注 ...

  2. idea中Could not autowire. No beans of 'xxxxMapper' type found.问题解决

    idea中Could not autowire. No beans of 'xxxxMapper' type found.问题解决 解决方案: 建议给Mapper增加@Repository注解,并加入 ...

  3. Could not autowire. No beans of 'JavaMailSender' type found..md

    Could not autowire. No beans of 'JavaMailSender' type found. 导入依赖 <dependency><groupId>o ...

  4. 【ActiveMQ】消息生产者自动注入报错:Could not autowire. No beans of 'JmsMessagingTemplate' type found

    标签:public   style   hat   and   报错   require   core   ota   ati 使用ActiveMQ过程中,定义消息生产者: package com.s ...

  5. Could not autowire. No beans of ‘xxxMapper‘ type found.

    在使用IDEA编写代码过程中,你可能会遇到这种情况: Could not autowire. No beans of 'xxxMapper' type found. 一般情况下,这种错误是不影响正常编 ...

  6. IntelliJ Idea取消Could not autowire. No beans of 'xxxx' type found的错误提示

    2019独角兽企业重金招聘Python工程师标准>>> 1.问题描述 在Idea的spring工程里,经常会遇到Could not autowire. No beans of 'xx ...

  7. 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 ...

  8. IDEACould not autowire. No beans of 'xxxMapper' type found.

    作为一名刚开始使用idea的新手,最近在使用maven+springMVC框架时遇到了这样一个问题:Could not autowire. No beans of 'xxxMapper' type f ...

  9. 解决IDEA : Could not autowire. No beans of ‘xxxx‘ type found

    错误信息 Could not autowire. No beans of 'xxxx' type found 导致原因及其解决办法 三种报错原因: 第一种:IDEA工具自身的缺陷,问题出在 sprin ...

最新文章

  1. 2022-2028年中国刨花板市场投资分析及前景预测报告(全卷)
  2. 5G UE — UE 的位置信息
  3. python安装numpy-python及numpy安装
  4. hdu 4309(最大流+枚举状态)
  5. 如何让测试同学理解并发锁
  6. 小米6android版本更新,钉子户小米6的新生,换电池、背盖,升级android11
  7. spring boot 的API敏捷开发框架
  8. pytorch—torch.tensor.scatter操作解析
  9. 初识kmp算法(呕心沥血之文----看视频+总结)
  10. Python basemap模拟导弹发射
  11. Abaqus 用户子程序 UEL
  12. 计算机语言发展的三个阶段,机器语言、汇编语言与高级语言
  13. cocos3.X拖动精灵移动
  14. 中国顶级黑客,你所不知的内幕
  15. win10便签常驻桌面_超实用操作秘籍,小电教你玩转Win10系统功能!(下)
  16. 什么是构造方法,为什么要使用构造方法
  17. 无论是开放外链,或是回归实体,不同的互联网平台之间的高墙正在被推倒
  18. 朋友圈点赞,微信发红包,视频的播放,Pc端微信加群,app端微信加群的测试点
  19. 一图掌握PEST分析模型及案例
  20. java 缓存jcs

热门文章

  1. 卡车自动装载系统(ATLS)的全球与中国市场2022-2028年:技术、参与者、趋势、市场规模及占有率研究报告
  2. c语言分桃分题设计思路,C语言实现的猴子分桃问题算法解决方案
  3. 学计算机语言需要英语基础吗,数学和英语不好的人能学编程吗?
  4. Android程序的入口
  5. python电话_Python短信电话报警
  6. 兄弟一脸懵逼,刚才是发生了什么?
  7. ONEDNS配置2:centos7DNS服务器VA转发器配置
  8. Flowchart流程图示例
  9. 综合布线系统 (布线系统的一种)
  10. 【系统】Win10 新装系统提示 OOBEIDPS