SpringBoot異常放出Failed to configure a Data Sourceを起動


明らかに、Failed to configure a DataSource:'url'attribute is not specified and no embedded datasource could be configured.ここではURLが見つかりません.構成関連のプロパティがまったくありません.
解決:アプリケーションでymlプロファイルに対応するものを追加すればよい
spring:
  datasource:
    #          
    type: com.alibaba.druid.pool.DruidDataSource
    # mysql   
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://localhost:3306/mCloudSql?useSSL=false&serverTimezone=UTC
    username: root
    password: root