Skip to content

Misano9699/microprofile-spring-config-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MicroProfile Spring Cloud Config Server Client

This project contains sample code for a MicroProfile Spring Cloud Config Client using the MicroProfile REST Client.

It contains the code for a Simple Spring Cloud Config Server and a MicroProfile Client.

Spring Cloud Config Server

The Spring Cloud Config Server is a simple Spring Boot application with the Config Server enabled. For demonstration purposes the server contains a native config server with two profiles for the microprofile-config client application.

Running the Config server

Go to the spring-config-server directory and run the following command

mvn clean package spring-boot:run

MicroProfile Config Client

MicroProfile Config Client is a simple MicroProfile application which uses the MicroProfile Config and REST Client API to load configuration properties from the Spring Cloud Config Server. It uses Java 17 and the MicroProfile 5 and Jakarta EE 10 specifications. This application uses Payara Micro 6 as the MicroProfile implementation, but it should work with other MicroProfile implementations as well.

Running the Config server

Go to the microprofile-config-client directory and run the following command

mvn clean package payara-micro:start 

After the application has started, you can call the greetings endpoint and see the loaded environment

About

A MicroProfile Config Spring Cloud Config Server Client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages