customizePropertySources abstract method

void customizePropertySources(
  1. MutablePropertySources sources
)

Called during construction to allow subclasses to register default property sources.

Override this method in your custom environment implementation to add system properties, YAML or map-based configuration sources, etc.

Example

@override
void customizePropertySources(MutablePropertySources sources) {
  sources.addLast(MapPropertySource('app', {
    'env': 'production',
    'debug': 'false',
  }));
}

Implementation

void customizePropertySources(MutablePropertySources sources);