Step 04 - Setting up Spring cloud config server

 STEP 4: create project with given below configuration https://start.spring.io/

Dependacy Needed

  1. Config Server 
  2. DevTools



Extract it and Import into your Eclipse


Imporatant Dependacies in Pom.xml
<!-- by spring-cloud-config-server enable the cloud config server funcationality -->

       <dependencies>

<dependency>

<groupId>org.springframework.cloud</groupId>

<artifactId>spring-cloud-config-server</artifactId>

</dependency>

<!-- by dev tool server can pickup changes directly without restart server -->

<dependency>

<groupId>org.springframework.boot</groupId>

<artifactId>spring-boot-devtools</artifactId>

<scope>runtime</scope>

<optional>true</optional>

</dependency>

<!-- Default dependency for test junin and mokito -->

<dependency>

<groupId>org.springframework.boot</groupId>

<artifactId>spring-boot-starter-test</artifactId>

<scope>test</scope>

</dependency>

</dependencies>


Set the application properties for name and port info:

spring.application.name=spring-cloud-config-server

server.port=8888

Comments

Popular posts from this blog

Setup Client Side Load Balancing With Ribbon

STEP 05 Installing GIT

Create a JPA Repository