org.springframework.beans.factory.UnsatisfiedDependencyException异常的解决方案

Nacos启动报错 方式1: bin目录进入终端执行: .\startup.cmd -m standalone。2.2、修改startup.cmd: 鼠标右键-显示更多选型-编辑。改成set MODE="standalone"把 set MODE="cluster" 阅读详情

项目启动报错:org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'desRelationModelController': Unsatisfied dependency expressed through field 'desRelationModelService'; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'desRelationModelServiceImpl': Bean with name 'desRelationModelServiceImpl' has been injected into other beans [desRelationModelServiceImpl] in its raw version as part of a circular reference, but has eventually been wrapped. This means that said other beans do not use the final version of the bean. This is often the result of over-eager type matching - consider using 'getBeanNamesForType' with the 'allowEagerInit' flag turned off, for example.

最直接解决方法:

@Autowired
private IDesRelationModelService desRelationModelService;

看看有没有在自己的实现类中是否引用了自己的service

本地配置nacos,启动时报错以及nacos配置步骤(精细版) 阅读详情

相关推荐

本地nacos启动失败,org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean **

nacos本地启动失败,数据库版本不对应

qq_31839075的博客 1万+

org.springframework.beans.factory.UnsatisfiedDependencyException异常问题的解决

最近学了IDEA和SpringBoot+MyBatis了,正所谓学以致用,于是用所学的来做项目,单元测试时报了下面的异常: Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'adminController': Unsatisfied...

shenxiaomo1688的博客 1万+

org.springframework.beans.factory.UnsatisfiedDependencyException异常解决方案

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userController': Unsatisfied dependency expressed through field 'userService'; nested exception is org....

刘刘刘刘刘牛皮的博客 11万+

org.springframework.beans.factory.UnsatisfiedDependencyException:解决方案(未满足的依赖异常

2) 接口有没有写实现类,实现类是实现的对应接口么?例如:import org.springframework.stereotype.Service;4) 确保代码无误后,再看看包是否下载完整,仍然报错的话,很可能是包不完整,可以在报错信息下面找找是不是有。1) service接口实现类上有没有加@Service注解,注解是不是引用的spring的类?特别是第一次拉下来的代码,别人能跑,自己跑不起来的情况,很可能是。简单看一下报错信息,可以理解为找不到依赖,或者依赖失败,3)查看注入是否正确。

weixin_69786244的博客 4032

org.springframework.beans.factory.UnsatisfiedDependencyException异常处理

在使用JdbcTemplate操作数据库时报错org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userService',从文字看是userService出的错: 再看我们的获取Bean操作: 因为我们使用的是 <context:component-scan base-package 包扫描而没有在xml配置文件中配置UserService

m0_57493148的博客 1万+

测试Springboot时:org.springframework.beans.factory.UnsatisfiedDependencyException异常分析

造成这个问题的因素很多。 这次造成的问题如下: o.s.test.context.TestContextManager : Caught exception while allowing TestExecutionListener [org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@71bbf57e] to prepare test instance [com

wretch_的博客 1605

关于org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name xx

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name xx的解决方案: 先把异常贴上吧,我相信很多人会遇到这个问题: 分析了很久问题的解方案,网上查了也有说各种各样的解决方案问题所在是没有在Application上使用@MapperScan扫描包,我这...

AE86-打破常规的博客 2791

getDriverName异常java,原因:java.lang.IllegalArgumentException:属性'driverClassName'不能为空...

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'springLogging3Application': Unsatisfied dependency expressed through field 'factory'; nested exception ...

weixin_42319263的博客 1728

springboot项目使用MongoTemplate报错

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.example.demo.test': 因为没有设置@SpringBootTest(classes = DemoApplication.class) 因为启动项目的入口是 DemoApplic...

阿松的博客 3448

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 类报错

有人说想看:org.springframework.beans.factory.UnsatisfiedDependencyException 异常解决方案,那么今天,他来了!!!! 刚开始搞SpringBoot的你,意气风发,心猿意马,抱着抛弃传统MVC繁琐配置的伟大目标,热切的去拥抱SpringBoot的框架模式,因为你知道springboot 的核心:约定大于配置! 所以你创建了工程,实体类,...

言语之间的博客 5万+

org.springframework.beans.factory.UnsatisfiedDependencyException

一、错误描述 最开始配置了多数据源,项目开发完,才发现第二个数据源并未使用到,于是改成单数据源,重启项目,哦豁,炸了。 org.springframework.beans.factory.UnsatisfiedDependencyException 爆了这个错,额。。。有些人会问,为什么你那有这个错误,我的却没有 原因在于我再启动类上加了东西 @SpringBootApplicati...

专注写bug 2459

org.springframework.beans.factory.UnsatisfiedDependencyException异常

关于Springorg.springframework.beans.factory.UnsatisfiedDependencyException异常 解决办法1: 我自己的原因是: 这个异常是由于在applicationContext.xml中关于bean的autowirte装配类型,在类型byName,byType,constructor三种类型中,可能会出现因无法自动装配而

yyjava的专栏 2万+

org.springframework.beans.factory.UnsatisfiedDependencyException org.springframework.beans.factory.

org.springframework.beans.factory.UnsatisfiedDependencyException org.springframework.beans.factory.BeanNotOfRequiredTypeException 异常 1)问题描述: 在进行ssm框架整合的时候,在进行相关的测试代码以及配置文件写完以后,tomcat服务器启动以后,就报了这个异常 ...

浮生离梦的博客 1042

org.springframework.beans.factory.UnsatisfiedDependencyException 异常怎么解决

org.springframework.beans.factory.UnsatisfiedDependencyException异常怎么解决? 严重: Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecu...

weixin_44812221的博客 4967
上一篇: 2021-03-25
黎明的寒冷谁可知
博客等级 码龄9年 1粉丝 · 8原创
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值