报错信息:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'studentController' method
com.exam.controller.StudentController#queryAll()
to {GET /queryAll}: There is already 'adminController' bean method
com.exam.controller.AdminController#queryAll() mapped.

错误原因:

项目中的Controller(控制层)接口重名了(queryAll),如下图所示:


SpringBoot启动报错: Error creating bean with name ‘“XXXX‘ defined in class path resource相关推荐

  1. 启动springboot报错Error creating bean with name 'dataSource' defined in class path resource

    2019独角兽企业重金招聘Python工程师标准>>> 启动springboot报错Error creating bean with name 'dataSource' define ...

  2. 记一次SpringBoot操作redis报错 Error creating bean with name ‘dataSource‘ defined in class path resource解决方法

    代码块 以下为Springboot操作Redis一些简单的测试代码 maven依赖 <dependency><groupId>org.springframework.boot& ...

  3. nacos的feign报错Error creating bean with name ‘configurationPropertiesBeans‘ defined in class path reso

    nacos的feign报错Error creating bean with name 'configurationPropertiesBeans' defined in class path reso ...

  4. SpringBoot启动报错Error creating bean with name 'xx': Unsatisfied dependency expressed through field xx

    错误如下: 2020-05-11 08:55:21.333 WARN 937516 --- [ main] ConfigServletWebServerApplicationContext : Exc ...

  5. SpringBoot启动报错Error creating bean with name 'projectingArgumentResolverBeanPostProcessor'

    这个错误 Error creating bean with name 'projectingArgumentResolverBeanPostProcessor' 发生的原因:切入点错误 @Aspect ...

  6. Error creating bean with name ‘endpoint‘ defined in class path resource [.../CxfConfig.class]

    Spring boot项目整合webservice后,引入阿里云短信包,项目启动报错. 问题描述: 最近一个老项目发送短信的接口需要由网易换成阿里云的,本来其它项目引入都没什么问题,但这个项目之前使用 ...

  7. 报错:Error creating bean with name ‘serverEndpointExporter‘ defined in class path resource [group/oneo

    背景 启动springboot项目测试类时报错: Error creating bean with name 'serverEndpointExporter' defined in class pat ...

  8. Error creating bean with name ‘redisConnectionFactory‘ defined in class path resource

    1.问题描述 在redis整合springcache的时候一直报错. 按照信息找的发生问题的部分: @Configuration @EnableCaching public class RedisCo ...

  9. Error creating bean with name ‘configurationPropertiesBeans‘ defined in class path resource异常分析

    Error creating bean with name 'configurationPropertiesBeans' defined in class path resource异常分析 在学习使 ...

最新文章

  1. linux 7 vsftpd 配置,CentOS7 安装并配置使用vsftpd
  2. 聊一聊javascript执行上下文
  3. 使用Visual Studio工作流发布SharePoint网页
  4. C# 系统应用之透明罩MyOpaqueLayer实现360界面阴影效果
  5. 古巴比伦乘法_古巴平台中的通用过滤器–类固醇上的excel过滤器
  6. 彻底理解被称为二叉树神级遍历的莫里斯(Morris)算法
  7. MySQL The JSON Data Type(JSON格式数据)
  8. linux media v4l2,Linux kernel drivers/media/v4l2-core/videobuf2-v4l2.c拒绝服务漏洞(CVE-2016-4568)...
  9. 使用HbuilerX运行微信小程序到微信小程序模拟器
  10. 怎么用计算机圣诞节快乐,【计算机·图文】圣诞节快乐—圣诞节故事
  11. 【论文随笔5】Context-Aware Transformer Transducer for Speech Recognition
  12. Android之sdcard保存数据
  13. C语言实现位数组(bit数组)与位数组的简单应用举例
  14. border-image
  15. PHP遍历文件夹下的所有子文件夹及文件
  16. 国产电脑支持Linux吗,天玥计算机(电脑)支持UOS、银河麒麟、Deepin等国产操作系统...
  17. c4d在运行时候显示计算机内存不足,C4D R19 保存空文档时显示没有足够内存怎么办 空文档都不行 存哪都不行...
  18. Redis Zset的实现为什么用跳表,而不用平衡树?
  19. uo和o的区别和用法_韵母o和uo的区别
  20. 音视频播放器—变速播放

热门文章

  1. 北航计算机学院面向对象(2023 第一单元)
  2. IntelliJ IDEA 快速生成注释模板设置教程(超级详细)
  3. linux使用命令行操作百度云上传下载文件
  4. matlab coff,matlab生成com组件时LINK : fatal error LNK1123: 转换到 COFF 期间失...
  5. deepin下安装docker-compose
  6. 亚马逊首席科学家李沐博士:工作五年反思
  7. mysql update语句怎么写_mysql更新语句怎么写?
  8. Fun Box测评:想做客厅游戏的电视盒子
  9. 斗鱼携五四青年打响“公益复兴”环保反击战
  10. 张一鸣和他的产品观人才观