Consider defining a bean of type 'com.biz.service.IBizClassifyService' in your configuration.
时间: 2023-08-28 10:08:55 浏览: 174
根据引用\[1\]和引用\[2\]的内容,问题的原因是在配置中找不到类型为'com.biz.service.IBizClassifyService'的bean。可能的原因是缺少了@Component注解,导致该类无法被扫描到。解决方法是在该类上添加@Component注解,以确保它能够被正确扫描并注册为一个bean。例如,在IBizClassifyServiceImpl类之前添加@Component注解:@Component public class IBizClassifyServiceImpl implements IBizClassifyService {。这样就可以解决找不到'com.biz.service.IBizClassifyService'类型的bean的问题。
#### 引用[.reference_title]
- *1* [Consider defining a bean of type ‘com.xxx.service.xxxService‘ in your configuration.](https://blog.csdn.net/H_define/article/details/124379908)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [Consider defining a bean of type ‘com.XXX‘ in your configuration.](https://blog.csdn.net/weixin_45001200/article/details/119092927)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文