Skip to content

Instantly share code, notes, and snippets.

View vipulkumarsviit's full-sized avatar
🏠
Working from home

Vipul Kumar vipulkumarsviit

🏠
Working from home
  • Plugo India Private Limited
  • Bangalore
View GitHub Profile
@vipulkumarsviit
vipulkumarsviit / using-spring-boot-config-server.md
Last active November 19, 2021 12:29
How to read config from file system or classpath or git location in spring boot application

Step 1: Create an application from https://start.spring.io with a dependency of spring-cloud-config-server.

Setp 2: Annotate your main application class with @EnableConfigServer

Step 3: Add below properties in application.properties

#Uncomment below section to use git as config location
spring.profiles.active=git
spring.cloud.config.server.git.uri=https://github.com/awesome-bank/awesome-bank-config.git