title: Spring cloud, config server can not start, how to config uri for git
body: <p>I am pretty interested in spring cloud project and now I am testing it, but blocked immediately.</p>
  
  <ol>
  <li>In POM: I added this dependency:</li>
  </ol>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;dependency&gt;
      &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
      &lt;artifactId&gt;spring-cloud-config-server&lt;/artifactId&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <ol start="2">
  <li>For main application:</li>
  </ol>
  
  <pre class="lang-java prettyprint-override"><code>@Configuration
  @EnableAutoConfiguration
  @EnableConfigServer
  public class SpringConfigServerApplication {
  
      public static void main(String[] args) {
          SpringApplication.run(SpringConfigServerApplication.class, args);
      }
  }  
  </code></pre>
  
  <p>So based on the documentation, I just need to add <code>enableConfigServer</code>, then I tried to start it, this is the error:</p>
  
  <blockquote>
    <p>org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'environmentRepository' defined in class org.springframework.cloud.config.server.ConfigServerConfiguration$GitRepositoryConfiguration: Invocation of init method failed; nested exception is java.lang.IllegalStateException: You need to configure a uri for the git repository</p>
  </blockquote>
  
  <p>So, how can I config a uri for git repository? There is nothing mentioned in the documentation.</p>
  
  <p>Thanks for more clarification</p>