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的配置,肯定是不对的
00
相似问题