springboot3.0.0 org.springframework.beans.factory.BeanCreationException
时间: 2023-08-28 13:20:58 浏览: 130
测试spring中的org.springframework.beans.factory.InitializingBean
根据引用中的错误信息,可以看出在创建名为 'departmentMapper'的bean时发生了错误。错误原因是缺少 'sqlSessionFactory' 或 'sqlSessionTemplate' 属性。这意味着在创建该bean时,需要注入一个名为 'sqlSessionFactory' 或 'sqlSessionTemplate' 的属性。根据引用的描述,可能是由于项目中引入了 common 工程导致的错误。在引用中,提到在 pom 文件中配置了 Spring Data REST HAL Browser 的依赖项。可能需要进一步检查该依赖项是否与项目的其他配置和依赖项兼容,以防止冲突。建议检查项目的配置和依赖项,确保正确配置了 'sqlSessionFactory' 或 'sqlSessionTemplate' 属性,并确保所有的依赖项都正确引入和配置。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [org.springframework.beans.factory.BeanCreationException: Error creating bean with name gradle相关](https://blog.csdn.net/AfterLife1220/article/details/129205367)[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^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [原项目引入springcloud报错:org.springframework.boot.context.properties....](https://blog.csdn.net/qun7559/article/details/123492415)[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^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [Springboot+swagger2 compatible version of org.springframework.plugin.core.PluginRegistry](https://blog.csdn.net/qq_40437747/article/details/108137427)[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^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文