title: Spring Cloud Config Server with Database backend
body: <p>I am trying to create a Spring Cloud Config Server that gets its Configurations from a <code>database</code> and not from the default git-repo.</p>
  <p>Every time I try to run my Config Server Application I get this Error:</p>
  <pre><code>Execution failed for task ':config-server:applications:config-server:bootRun'.
  &gt; Process 'command 'C:\Program Files\choco\openjdk-jdk-11\latest\bin\java.exe'' finished with non-zero exit value 1
  </code></pre>
  <p>From the Server itself comes this message (reformatted for better reading):</p>
  <pre><code>[ERROR agnostics.LoggingFailureAnalysisReporter : 
  APPLICATION FAILED TO START
  Description: Invalid config server configuration.
  Action: If you are using the git profile, you need to set a Git URI in your configuration.  If you are using a native profile and have spring.cloud.config.server.bootstrap=true, you need to use a composite configuration.
  [main||||||| - |]]
  </code></pre>
  <p>My application.yaml has this part in it:</p>
  <pre class="lang-yaml prettyprint-override"><code>spring:
    application:
      name: my-services-api
    datasource:
      url: jdbc:h2:mem:testdb
      driver-class-name: org.h2.Driver
      platform: h2
      hikari:
        connection-timeout: 5000
        maximum-pool-size: 10
    cloud:
      config:
        server:
          jdbc:
            sql: SELECT KEY, VALUE from MY_PROPERTIES where APPLICATION=? and PROFILE=? and LABEL=?
            order: 1
    h2:
      console:
        enabled: true
  </code></pre>
  <p>As you can see, there is no <code>spring.cloud.config.server.bootstrap=true</code> so I don't know what it wants me to do.<br>
  I also don't want to use a git profile, so the Action doesn't help me at all.</p>
  <p>Does someone know, how I can fix this issue? Thanks</p>
  <p><strong>Update:</strong>
  I added <code>spring.cloud.config.server.git.uri</code> and changed the order of jdbc to 1 and of git to 2.<br>
  After that it kind of worked but I still have the issue, that it won't read the configurations from the database</p>