Java tutorial
/* * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://duracloud.org/license/ */ package org.duracloud.account.config; import org.springframework.context.MessageSource; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.support.ResourceBundleMessageSource; @Configuration public class ResourceBundleConfig { @Bean public MessageSource messageSource() { ResourceBundleMessageSource m = new ResourceBundleMessageSource(); m.setBasenames("global", "root", "user"); return m; } }