Working on Play Framework configuration is easy. In this article, I'll walk you through simple implementation where you are able to create a generic application.conf and a dedicated application.conf for each environment.
Objective: To be able to easily manage your Play2 application configuration separately for production, testing and development.
Solution: Override GlobalSettings onLoadConfig to point to a commong configuration and a fallback configuration specific for your current environment. Your code should look like below.
A blog dedicated to my technical and non-technical experiences on work, events, trips and life in general.
Tuesday, May 19, 2015
Thursday, May 7, 2015
Embedded Jetty in Spring MVC, IoC/DI
I was trying to configure embedded jetty in a spring application that implements MVC(Model View Controller). I want to utilize single spring applicationContext xml file for IoC(Inversion of Control) and DI(Dependency Injection) on dispatcher servlets.
The goal is to be able to use or reference beans configured/located on already been loaded spring application context. Read and understand my resolution below.
Subscribe to:
Posts (Atom)