Example usage for org.springframework.boot.env RandomValuePropertySource RandomValuePropertySource

List of usage examples for org.springframework.boot.env RandomValuePropertySource RandomValuePropertySource

Introduction

In this page you can find the example usage for org.springframework.boot.env RandomValuePropertySource RandomValuePropertySource.

Prototype

public RandomValuePropertySource(String name) 

Source Link

Usage

From source file:org.springframework.boot.env.RandomValuePropertySource.java

public static void addToEnvironment(ConfigurableEnvironment environment) {
    environment.getPropertySources().addAfter(StandardEnvironment.SYSTEM_ENVIRONMENT_PROPERTY_SOURCE_NAME,
            new RandomValuePropertySource(RANDOM_PROPERTY_SOURCE_NAME));
    logger.trace("RandomValuePropertySource add to Environment");
}