How to read different properties file based on Spring Profile in a Spring MVC project Introduction This tutorial aims towards providing a solution for selecting properties file based on the profile injected for a Spring MVC application at run time. Technologies used Spring 3.1 Java 8 How to inject Spring profile Spring profiles can be […]
Category: Spring MVC
How to use Spring Profiles with Docker Containers
How to use Spring Profiles with Docker Containers Introduction Spring Profiles are an effective way of implementing environment independent code. The properties file or @Beans can be selected dynamically at run time based on the profile injected. Assuming that you are quite familiar with the spring profiles and looking for injecting profiles in a […]