Error creating bean with name 'spring.datasource-org.springframework.boot.autoconfigure.jdbc.DataSourceProperties'
时间: 2023-09-19 10:06:29 浏览: 189
springboot中出错问题@ConfigurationProperties
"Error creating bean with name 'spring.datasource-org.springframework.boot.autoconfigure.jdbc.DataSourceProperties'"的错误是由于实例化"DataSourceProperties" bean 失败引起的。这个异常的根本原因是类"org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType"的"NoClassDefFoundError"。 进一步解释了这个错误的原因,它表示"DataSourceProperties"类的构造函数引发了异常。 这个错误是由于Spring应用程序中名为"dataSource"的bean的依赖注入出现问题,具体问题在于"dataSource" bean的"basicProperties"字段有一个未满足的依赖项。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [springboot报错Error creating bean with name ‘dataSource‘的解决方案](https://blog.csdn.net/qq_62923382/article/details/130728274)[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: 100%"]
[ .reference_list ]
阅读全文