Technology

Binding External Configuration properties in spring boot application

Hi, In this blog we'll learn how we can inject configuration properties in a springBoot application and what are the benefits of spring boot over spring while injecting configuration properties. There are two ways to inject our configuration properties:- 1. By Using @Value annotation (Spring 3.0+ And Grails 3.0) 2. Typesafe...

by Ashu Kohli
Tag: externalized configuration
23-Jul-2015

Grails, Technology

Externalize and reload grails Log4j configuration

In Grails 2.x and in some earlier versions, the log4j configuration resides in grails-app/conf/Config.groovy. We can modify log4j closure here to add new categories and tweak the log levels. In development environemnt any changes to log4j closure are loaded automatically without bouncing the application, but not when the application is...

by Sandeep Poonia
Tag: externalized configuration
01-Jul-2015

Grails

Injecting Spring Beans with data from Config

In one of the projects, we had to externalize the Config file to be in a properties file. All configurations related to the application were to be stored in that file. We had a few spring beans, like the JMS connection factory, which needs the brokerURL which should ideally be an external configuration as it is will be environment...

by Vivek Krishna
Tag: externalized configuration
15-Apr-2010