Error creating bean with name 'dictDataController': Unsatisfied dependency expressed through field 'dictDataService'
时间: 2023-09-29 14:03:50 浏览: 177
Error creating bean with name 'dictDataController': Unsatisfied dependency expressed through field 'dictDataService'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.sxcute.meeting.service.DictDataService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
创建名称为'dictDataController'的Bean时出错:通过字段'dictDataService'表示的依赖关系不满意;嵌套的异常是org.springframework.beans.factory.NoSuchBeanDefinitionException:没有类型为'com.sxcute.meeting.service.DictDataService'的合格Bean可用:预计至少有1个bean符合autowire候选条件。Dependency annotations:{@org.springframework.beans.factory.annotation.Autowired(required=true)}
这个错误表示在创建名为'dictDataController'的Bean时,通过字段'dictDataService'表示的依赖关系无法满足。原因是没有找到符合自动装配条件的类型为'com.sxcute.meeting.service.DictDataService'的合格Bean。可能的原因是忘记在相应的类上加上@Service注解或@Autowired注解,或者没有在启动类上加上@MapperScan注解来扫描Mapper。建议检查相关类的注解配置是否正确并且存在。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [报错-Error creating bean with name xxx: Unsatisfied dependency expressed through field xxx](https://blog.csdn.net/qq_36732146/article/details/123194842)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [问题杂谈(二十七)Error creating bean with name: Unsatisfied dependency expressed through field](https://blog.csdn.net/qq_44648936/article/details/130280387)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文