Spring Profiles example
Spring @Profile allow developers to register beans by condition. For example, register beans based on what operating system (Windows, *nix) your application is running, or load a database properties file…
Favourite tutorials for developers
Spring @Profile allow developers to register beans by condition. For example, register beans based on what operating system (Windows, *nix) your application is running, or load a database properties file…
In Spring Boot, it picks .properties or .yaml files in the following sequences : application-{profile}.properties and YAML variants, application.properties and YAML variants. Tested :Spring Boot 2.1.2.RELEASE, Maven 3. This article…
In this article, we will show you how to use @Profile in Spring Boot and also how to test it. Tested with :Spring Boot 2.1.2.RELEASE, Maven 3. In Spring Boot,…