Blog Archives

Spring loading properties files with ApplicationContextInitializer

Spring 3.1 introduced a very convenient hook for customizing the application context with ApplicationContextInitializer. It can be used to set active profiles and register custom property sources.



Spring tutorial to read .proprties files

Q1. How do you read properties file in spring?
A1. PropertyPlaceholderConfigurer allows you to share a properties files. You can simply share one properties file for all of your build info …



300+ Java Interview FAQs

800+ Java Interview Q&As

Top