Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Spring: Microservices with Spring Boot

You're reading from   Spring: Microservices with Spring Boot Build and deploy microservices with Spring Boot

Arrow left icon
Product type Paperback
Published in Mar 2018
Publisher
ISBN-13 9781789132588
Length 140 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
In28Minutes Official In28Minutes Official
Author Profile Icon In28Minutes Official
In28Minutes Official
Arrow right icon
View More author details
Toc

Externalised Configuration

Applications are typically built once (in JAR or WAR) and then deployed into multiple environments. The following figure shows some of the different environments an application can be deployed to:

Externalised Configuration

In each of the preceding environments, an application typically has the following:

  • Connections to databases
  • Connections to multiple services
  • Specific environment configurations

It is a good practice to externalize configurations that change between different environments into a configuration file or database.

Spring Boot provides a flexible, standardized approach for externalized configuration.

In this section, we will look at the following:

  • How can properties from application.properties be used inside our services?
  • How do type-safe Configuration Properties make application configuration a cakewalk?
  • What kind of support does Spring Boot provide for Spring Profiles?
  • How can you configure properties in application.properties?

In Spring Boot, application.properties is the default...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image