天天看點

Failed to configure a DataSource: url attribute is not specified and no embedded datasource could...

今天在做谷粒學院的service-oss子產品時,報了以下這個錯:

Failed to configure a DataSource: url attribute is not specified and no embedded datasource could...

啟動時候,找資料庫配置,但是現在子產品因為不需要操作資料庫,隻是做到圖檔上傳功能,沒有配置資料庫解決辦法:

1.添加上資料庫配置

2.在啟動類上添加屬性,預設不去加載資料庫配置(建議使用這種)

Failed to configure a DataSource: url attribute is not specified and no embedded datasource could...