title: Spring cloud config server failed working today, java.lang.NoSuchMethodError
body: <p>My Spring cloud project has been working all the time until today. The error happened in Spring cloud.</p>
  
  <p>in POM:</p>
  
  <pre><code>&lt;parent&gt;
          &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
          &lt;artifactId&gt;spring-cloud-starter-parent&lt;/artifactId&gt;
          &lt;version&gt;Brixton.BUILD-SNAPSHOT&lt;/version&gt;
          &lt;relativePath /&gt; &lt;!-- lookup parent from repository --&gt;
      &lt;/parent&gt;
  
      &lt;dependencies&gt;
          &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;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
              &lt;artifactId&gt;spring-cloud-starter-eureka&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  </code></pre>
  
  <p>In bootstrap:</p>
  
  <pre><code>spring:
    application:
      name: configserver
    profiles:
      active: native
  </code></pre>
  
  <p>In main app:</p>
  
  <pre><code>@Configuration
  @EnableAutoConfiguration
  @EnableDiscoveryClient
  @EnableConfigServer
  public class ConfigServerApplication {
  
      public static void main(String[] args) {
          SpringApplication.run(ConfigServerApplication.class, args);
      }
  
  }
  </code></pre>
  
  <p>When I tried to run, i got this error:</p>
  
  <pre><code>java.lang.NoSuchMethodError: org.springframework.cloud.config.environment.Environment.&lt;init&gt;(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V
      at org.springframework.cloud.config.server.PassthruEnvironmentRepository.findOne(PassthruEnvironmentRepository.java:64) ~[spring-cloud-config-server-1.1.0.BUILD-SNAPSHOT.jar:1.1.0.BUILD-SNAPSHOT]
      at org.springframework.cloud.config.server.NativeEnvironmentRepository.findOne(NativeEnvironmentRepository.java:105) ~[spring-cloud-config-server-1.1.0.BUILD-SNAPSHOT.jar:1.1.0.BUILD-SNAPSHOT]
      at org.springframework.cloud.config.server.EnvironmentController.labelled(EnvironmentController.java:111) ~[spring-cloud-config-server-1.1.0.BUILD-SNAPSHOT.jar:1.1.0.BUILD-SNAPSHOT]
      at org.springframework.cloud.config.server.EnvironmentController.defaultLabel(EnvironmentController.java:97) ~[spring-cloud-config-server-1.1.0.BUILD-SNAPSHOT.jar:1.1.0.BUILD-SNAPSHOT]
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_51]
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_51]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_51]
  </code></pre>
  
  <p>Why did this happen? Is spring cloud being updated now?</p>