With this archetype its posible to create a config-server project pre-configured for integrate with Eureka and ready to work with native profile config. Also its posible config the server to work with a hosted config path.
- JDK 8
- Maven 3
To install the archetype in local execute the following commands:
git clone https://github.com/rafabc/microservices-maven-archetypes.git
cd microservices-maven-archetypes/archetype-config-server
mvn clean install
mvn install archetype:update-local-catalog
mvn archetype:generate \
-DarchetypeGroupId=com.archetypes \
-DarchetypeArtifactId=archetype-config-server \
-DarchetypeVersion=0.0.1-SNAPSHOT \
-DgroupId=com.micro \
-DartifactId=configserver \
-Dversion=0.0.1-SNAPSHOT \
-Dconfig-server-port=1111 \
-Deureka-port=2222 \
-Dspring-boot-admin-port=3333 \
-Dzipkin-port=4444 \
-Dzuul-port=8082
To see the configuration properties of a microservice spring cloud config provide the next url: http://localhsot:[config-service-port]/[servicce-name]/info
Also its posible see the config over zuul with the next url: http://localhsot:[zuul-port]/[config-service-name]/[servicce-name]/info