Brief introduction to bootstrap.yml and application.yml

In the Spring Boot application, the configuration files are either application.properties or application.yml. The application.yml config file will contain application-related configurations, such as server port, JPA configuration, and data source configuration.

In the case of the Spring Cloud application, we need some configurations that would be used in multiple microservices. We require two types of configuration files in the case of the Spring Cloud application. These files are:

  • The Bootstrap application configuration file (bootstrap.yml)
  • The application configuration file (application.yml)

By default, Bootstrap properties are added with high precedence, so they cannot be overridden ...

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.