Running your configuration application

Let's run your configuration application by using the command line, type mvn spring-boot:run. The Git-backed configuration API provided by our server can be queried using the following paths:

/{application}/{profile}[/{label}] 
/{application}-{profile}.yml 
/{label}/{application}-{profile}.yml 
/{application}-{profile}.properties 
/{label}/{application}-{profile}.properties 

Let's understand the following variables for parameterized environment resources:

  • The {application} variable maps to the spring.application.name property's value on the client side
  • The {profile} variable maps to spring.profiles.active property's value on the client side
  • The {label} refers to a Git branch name, commit ID, and tag

Get Mastering Spring Boot 2.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.