SpringBoot启动报错: Error creating bean with name ‘“XXXX‘ defined in class path resource
报错信息:
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相关推荐
- 启动springboot报错Error creating bean with name 'dataSource' defined in class path resource
2019独角兽企业重金招聘Python工程师标准>>> 启动springboot报错Error creating bean with name 'dataSource' define ...
- 记一次SpringBoot操作redis报错 Error creating bean with name ‘dataSource‘ defined in class path resource解决方法
代码块 以下为Springboot操作Redis一些简单的测试代码 maven依赖 <dependency><groupId>org.springframework.boot& ...
- 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 ...
- 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 ...
- SpringBoot启动报错Error creating bean with name 'projectingArgumentResolverBeanPostProcessor'
这个错误 Error creating bean with name 'projectingArgumentResolverBeanPostProcessor' 发生的原因:切入点错误 @Aspect ...
- Error creating bean with name ‘endpoint‘ defined in class path resource [.../CxfConfig.class]
Spring boot项目整合webservice后,引入阿里云短信包,项目启动报错. 问题描述: 最近一个老项目发送短信的接口需要由网易换成阿里云的,本来其它项目引入都没什么问题,但这个项目之前使用 ...
- 报错:Error creating bean with name ‘serverEndpointExporter‘ defined in class path resource [group/oneo
背景 启动springboot项目测试类时报错: Error creating bean with name 'serverEndpointExporter' defined in class pat ...
- Error creating bean with name ‘redisConnectionFactory‘ defined in class path resource
1.问题描述 在redis整合springcache的时候一直报错. 按照信息找的发生问题的部分: @Configuration @EnableCaching public class RedisCo ...
- Error creating bean with name ‘configurationPropertiesBeans‘ defined in class path resource异常分析
Error creating bean with name 'configurationPropertiesBeans' defined in class path resource异常分析 在学习使 ...
最新文章
- linux 7 vsftpd 配置,CentOS7 安装并配置使用vsftpd
- 聊一聊javascript执行上下文
- 使用Visual Studio工作流发布SharePoint网页
- C# 系统应用之透明罩MyOpaqueLayer实现360界面阴影效果
- 古巴比伦乘法_古巴平台中的通用过滤器–类固醇上的excel过滤器
- 彻底理解被称为二叉树神级遍历的莫里斯(Morris)算法
- MySQL The JSON Data Type(JSON格式数据)
- linux media v4l2,Linux kernel drivers/media/v4l2-core/videobuf2-v4l2.c拒绝服务漏洞(CVE-2016-4568)...
- 使用HbuilerX运行微信小程序到微信小程序模拟器
- 怎么用计算机圣诞节快乐,【计算机·图文】圣诞节快乐—圣诞节故事
- 【论文随笔5】Context-Aware Transformer Transducer for Speech Recognition
- Android之sdcard保存数据
- C语言实现位数组(bit数组)与位数组的简单应用举例
- border-image
- PHP遍历文件夹下的所有子文件夹及文件
- 国产电脑支持Linux吗,天玥计算机(电脑)支持UOS、银河麒麟、Deepin等国产操作系统...
- c4d在运行时候显示计算机内存不足,C4D R19 保存空文档时显示没有足够内存怎么办 空文档都不行 存哪都不行...
- Redis Zset的实现为什么用跳表,而不用平衡树?
- uo和o的区别和用法_韵母o和uo的区别
- 音视频播放器—变速播放
热门文章
- 北航计算机学院面向对象(2023 第一单元)
- IntelliJ IDEA 快速生成注释模板设置教程(超级详细)
- linux使用命令行操作百度云上传下载文件
- matlab coff,matlab生成com组件时LINK : fatal error LNK1123: 转换到 COFF 期间失...
- deepin下安装docker-compose
- 亚马逊首席科学家李沐博士:工作五年反思
- mysql update语句怎么写_mysql更新语句怎么写?
- Fun Box测评:想做客厅游戏的电视盒子
- 斗鱼携五四青年打响“公益复兴”环保反击战
- 张一鸣和他的产品观人才观