Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.、
时间: 2023-10-17 12:25:36 浏览: 109
根据引用的内容,"Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured." 是一个错误提示信息,意味着在配置数据源时没有指定'url'属性,并且没有配置嵌入式数据源。这个错误通常出现在Spring Boot项目中,在启动项目时,如果没有正确配置数据源的URL属性或者没有配置嵌入式数据源,就会抛出这个异常。具体来说,当在Spring Boot的配置文件中没有配置spring.datasource.url属性时,或者在pom.xml文件中使用了spring-boot-starter-data-jpa依赖但没有配置数据库的URL时,就会出现这个异常。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [Failed to configure a DataSource: 'url' attribute is not specified and no embedded 的三种解决办法](https://blog.csdn.net/qq_34322008/article/details/89954934)[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%"]
- *3* [Failed to configure a DataSource: ‘url’ attribute is not specified](https://blog.csdn.net/wdquan19851029/article/details/111559518)[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 ]
阅读全文