Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured原因
时间: 2023-08-27 07:14:00 浏览: 75
问题的原因是Mybatis没有找到合适的加载类,进而导致spring-datasource-url加载不成功。这可能是由于项目配置或依赖问题导致的。解决办法是检查配置文件中的数据库URL是否正确,并确保项目中已经添加了正确的数据库依赖。另外,还可以尝试更新Mybatis和Spring Boot的版本,以确保它们的兼容性。在解决问题之前,还可以参考相关的链接和文档,了解更多关于Spring Boot项目配置和数据库访问的信息。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource ...](https://blog.csdn.net/blbyu/article/details/126595381)[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^chatsearchT3_1"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文