Error creating bean with name 'deptServiceImpl'
时间: 2023-10-20 12:02:46 浏览: 93
Error creating bean with name 'deptServiceImpl'是一个org.springframework.beans.factory.UnsatisfiedDependencyException异常。这个异常是由于依赖注入失败引起的。在查看引用的内容中,很可能出现以下情况导致该异常的发生:
1. 实现类没有添加@Service注解
2. 启动类没有添加@MapperScan("com.xxx.mapper")注解
3. ServiceImpl中的dao包没有导入@Autowired注解
4. 没有添加@EnableAutoConfiguration注解
综上所述,你可以检查这些可能的原因,以解决这个异常。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [SpringBoot 报错: Error creating bean with name ‘deptServiceImpl‘: Unsatisfied dependency ...](https://blog.csdn.net/qq_52600282/article/details/123766475)[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_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 类...](https://blog.csdn.net/weixin_43558566/article/details/103728676)[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_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文