Failed to load ApplicationContext

来源:7-3 商品类别批量添加后端开发

进击的盐酱

2021-04-20

前几次运行时是对的,然后突然就显示这样的错误了,想问下老师这是怎么回事TAT

警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘productCategoryServiceImpl’: Unsatisfied dependency expressed through method ‘getProductCategoryList’ parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘long’ available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘long’ available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}

写回答

1回答

翔仔

2021-04-20

同学好,这里说的是依赖一个getProductCategoryList方法有问题,可以和课程对照一下 mapper关于getProductCategoryList的配置,肯定是不对的

0
0

Java双版本(SSM到SpringBoot)校园商铺全栈开发

SSM商铺V1.0,解决毕设痛点;SpringBoot商铺V2.0,满足工作刚需

5129 学习 · 8152 问题

查看课程