Skip to content

spring cloud config server with jdbc backend and rest api for config db

Notifications You must be signed in to change notification settings

spansari/db-config-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Cloud Config Server with jdbc backend Spring Boot, MySQL,Envers Spring Data Rest API

Requirements

Vault: running on localhost:8200

Steps to Setup

1. Clone the application


**2. Create Mysql database**
```bash
create database configdb

3. Change mysql username and password as per your installation

  • open src/main/resources/application.properties

  • change spring.datasource.username and spring.datasource.password as per your mysql installation

4. Build and run the app using maven

mvn package java -jar target/db-config-server-1.0.0.jar

or using your specifc properties file: java -jar target\db-config-server-1.0.0.jar --spring.config.name=local

Alternatively, you can run the app without packaging it using -

mvn spring-boot:run

The app will start running at http://localhost:8888.

Access Swagger-UI at http://localhost:8080/db-config-server/swagger-ui.html

Explore Rest APIs

The app defines following CRUD APIs.

GET /db-config-server/api

POST /db-config-server/api

GET /db-config-server/api/{id}

PUT /db-config-server/api/{id}

DELETE /db-config-server/api/{id}

You can test them using postman or any other rest client.

Learn more

About

spring cloud config server with jdbc backend and rest api for config db

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published