Setup a config server/client by spring boot and spring cloud and fetch properties from database and update all clients(or micorservices apps) property sources in enviroment context whit both pull(by client) and push(from server) approach. use @Value or @ConfigurationProperties for read properties
The following technologies are used:
- Hibernate Jpa
- H2 Database 1.4.199
- Maven 4.0.0
- Spring Boot 2.4.3
- Spring Cloud 2020.0.0
- Kafka
- ZooKeeper
mvn clean spring-boot:runafter change value of properties: for pull changes by client:
curl -H "Content-Type: application/json" -d {} http://localhost:8085/actuator/refreshfor notify changes from server:
curl -H "Content-Type: application/json" -d {} http://localhost:8082/actuator/busrefreshhttps://dzone.com/articles/running-apache-kafka-on-windows-os
For further reference, please consider the following sections: