错误:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘com.zking.ssm1.service.impl.OrderServiceImplTest’: Unsatisfied dependency expressed through field ‘orderService’; nested exception is org.springframework.bean
翻译:
org.springframework.beans.factory。exception:创建名为“com.zking.ssm1.service.impl”的bean时出错。orderserviceimptest ‘:通过字段’orderService’表示的未满足的依赖关系;嵌套异常是org.springframework.bean .factory。NoSuchBeanDefinitionException:没有“com.zking.ssm .service”类型的合格bean。OrderService’ available:预期至少有一个bean符合autowire候选条件。依赖注释:{ @org.springframework.beans.factory.annotation.Autowired(要求= true)}
解决方法:
我错误原因是因为配置文件没改成项目名,改成项目名后就可以了。
Ide运行项目时报错
最新推荐文章于 2023-11-09 11:01:42 发布