Wednesday, September 24, 2014

Using wildcards for spring MessageSources


by Emil Korladinov 



Overview 

Recently I worked on a Spring project which uses a lot of property files located all over the source tree. The requirement is to use these property files as part of the messageSource configured by Spring Framework.After dome time spent in searching suitable solution, I came up with a custom solution which I want to share with all interested.

Wildcard enabled Spring message source

XML Configuration


Java Configuration

Spring magic: Dynamically set URI prefix for group of controllers

Overview Say you have a big Spring or Spring Boot project with a lot of controller, which you want do separate in different groups with d...