As Deinum suggests, I would make sure the client is configured with the parent as spring -cloud-starter-parent and gives it a version. Maven plugins provided by the spring scope will not work when you include in your dependencies and remember that the cloud is a project other than loading. Change it to:
<parent> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-parent</artifactId> <version>1.0.0.RELEASE</version> <relativePath /> </parent>
Secondly, as a new discipline (and probably not your problem here), I would use the new annotation in my application instead of @Configuration and @EnableAutoConfiguration
@SpringBootApplication
Third, double check that you have @EnableConfigServer on your configuration server.
Fourth, make sure your bootstrap.properties on your client has the specified spring application name:
spring.application.name=spirent
Finally, if you used the spring -cloud-config sample project, your URI has a user password and a default password:
http://user: ddf4757e-0077-42e4-b2ad-2ae04340b08c@localhost :8888
Otherwise, try starting with the spring -cloud-config project located here to make sure your configuration server is configured correctly:
https:
RubesMN
source share