Guest User

Untitled

a guest
Feb 23rd, 2018
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. <parent>
  2. <groupId>org.springframework.boot</groupId>
  3. <artifactId>spring-boot-starter-parent</artifactId>
  4. <version>1.5.4.RELEASE</version>
  5. </parent>
  6. <dependencies>
  7. <dependency>
  8. <groupId>org.springframework.boot</groupId>
  9. <artifactId>spring-boot-starter</artifactId>
  10. </dependency>
  11. <dependency>
  12. <groupId>org.springframework.boot</groupId>
  13. <artifactId>spring-boot-starter-test</artifactId>
  14. <scope>test</scope>
  15. </dependency>
  16. <dependency>
  17. <groupId>org.springframework.cloud</groupId>
  18. <artifactId>spring-cloud-config-server</artifactId>
  19. </dependency>
  20. </dependencies>
  21. <dependencyManagement>
  22. <dependencies>
  23. <dependency>
  24. <groupId>org.springframework.cloud</groupId>
  25. <artifactId>spring-cloud-dependencies</artifactId>
  26. <version>Dalston.SR1</version>
  27. <type>pom</type>
  28. <scope>import</scope>
  29. </dependency>
  30. </dependencies>
  31. </dependencyManagement>
  32.  
  33. @EnableConfigServer
  34. @SpringBootApplication
  35. public class ConfigServerApplication {
  36. public static void main(String[] args) {
  37. SpringApplication.run(ConfigServerApplication.class, args);
  38. }
  39. }
  40.  
  41. spring.application.name=config-server
  42.  
  43. spring.cloud.config.server.git.uri=https://github.com/***/config-server-test
  44. spring.cloud.config.server.git.username=zhu*****
  45. spring.cloud.config.server.git.password=****
Add Comment
Please, Sign In to add comment