springboot错误总结一

news/2024/11/10 10:48:53/

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘documentationPluginsBootstrapper’ defined in URL [jar:file:/C:/Users/Administrator/.m2/repository/io/springfox/springfox-spring-web/2.8.0/springfox-spring-web-2.8.0.jar!/springfox/documentation/spring/web/plugins/DocumentationPluginsBootstrapper.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘webMvcRequestHandlerProvider’ defined in URL [jar:file:/C:/Users/Administrator/.m2/repository/io/springfox/springfox-spring-web/2.8.0/springfox-spring-web-2.8.0.jar!/springfox/documentation/spring/web/plugins/WebMvcRequestHandlerProvider.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘requestMappingHandlerMapping’ defined in class path resource [org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map ‘testbApi’ method
public com.acmed.appstore.po.ResponseResult com.acmed.appstore.api.TestbApi.selectByTime(java.lang.String,java.lang.String)
to {[/testb/findaAnb],methods=[GET]}: There is already ‘testbApi’ bean method
public com.acmed.appstore.po.ResponseResult com.acmed.appstore.api.TestbApi.findaAnb(java.lang.String) mapped.
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:189)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1193)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1095)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:303)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107)
at com.acmed.appstore.AppstoreApplication.main(AppstoreApplication.java:12)
保存原因:Api的地址重复(/testb/findaAnb)


http://www.ppmy.cn/news/703680.html

相关文章

使用EL表达式时Tomact报错:javax.el.PropertyNotFoundException: 类型[java.lang.String]上找不到属性[snum]

最近在做一个项目时,遇到tomcat报错 “javax.el.PropertyNotFoundException:类型[java.lang.String]上找不到属性[XXX] 去百度了一下,总结出以下原因: 1 . 可能是你的javabean里面xxx属性出问题,检查以下你的get方法写法是否写…

解决Mysql 主从或主主报1062错误

1062错误——主键冲突,出现这种情况就是从库出现插入操作,主库又插入相同的数据,iothread没问题,sqlthread出错 处理此种错误一般有两种思路: 1、直接跳过错误执行语句 2、找到错误执行语句,修复主库2数据 …

C++刷题错误集锦

AddressSanitizer: heap-buffer-overflow on address 堆缓存移除,数组访问越界了。C之invalid initialization of non-const reference of type ‘int&’ from an rvalue of type ‘int’ 函数原型上参数是int类型,但是在调用函数的时候却是“int&am…

ZUCC数据库原理 第二部分开发 实验6

实验6 JDBC进阶(3) 一、相关知识点 1、JDBC基本概念 2、批处理 3、DAO和OR映射 二、实验目的: 掌握批量SQL语句执行的方法,理解DAO和ORM的基本概念 三、实验内容: 利用批量SQL语句执行的方法实现实验5中的最后两…

实验记录 | 6/29

使用scSplitter拆分10X 的数据的时候,出现了问题。 EXITING because of FATAL ERROR in reads input: quality string length is not equal to sequence length ST-K00126:608:HWNLJBBXX:6:2115:23480:3459 ST-K00126:608:HWNLJBBXX:6:1212:4005:42513 2:N:0:GATCTC…

php code128条码,PHP教程:php实现生成code128条形码的方法详解

《PHP教程:php实现生成code128条形码的方法详解》要点: 本文介绍了PHP教程:php实现生成code128条形码的方法详解,希望对您有用。如果有疑问,可以联系我们。 本文实例讲述了php实现生成code128条形码的方法.分享给大家供…

硬件检测信息记录

硬盘:东芝 THNSNJ128GCSY (固态硬盘 [基础信息] ---------------------------------------------------------------------------------- 名称 东芝 THNSNJ128GCSY (固态硬盘) 容量 128 GB 磁盘已使用 共 1604 …

Barco无线演示系统受多个漏洞困扰

F-Secure的IT安全研究人员在Barco的Clickshare产品(一种无线演示系统)中发现了一些高危漏洞,可以让攻击者在演示期间窃取到关键信息,甚至还会影响密码等敏感信息。 此外,通过这些漏洞攻击者还可以在目标设备上安装后门…