@Configuration
+public class CustomPropertySourceLocator implements PropertySourceLocator {
+
+ @Override
+ public PropertySource<?> locate() {
+ return new MapPropertySource("customProperty",
+ Collections.<String, Object>singletonMap("property.from.sample.custom.source", "worked as intended"));
+ }
+}
+