Cause: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'tMchInfoMapper' available
时间: 2023-10-20 14:32:13 浏览: 92
spring-beans-5.2.0.RELEASE-API文档-中英对照版.zip
根据引用内容和,报错信息显示为"org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'tMchInfoMapper' available",意味着Spring容器无法找到名为'tMchInfoMapper'的bean。根据引用中的解释,这个错误通常是由于配置文件或类中的代码错误导致的。可能是因为在代码中,getBean()方法中的id首字母大写了,而在getBean()方法中,id的首字母应该是小写的。如果将这个错误修复为小写字母,问题就会解决。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [解决报错问题:org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named ...](https://blog.csdn.net/qq_58372242/article/details/124501799)[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%"]
- *2* [org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named ‘XX‘ available 部分...](https://blog.csdn.net/m0_46393560/article/details/125932614)[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 ]
阅读全文