Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded

異常如下圖: 解決方法: 1.配置文件(application.properties)配置數據庫連接信息 2.在SpringBoot啓動程序中添加(exclude=DataSourceAutoConfiguration.class)排除JDBC自動裝配。
相關文章
相關標籤/搜索