All Downloads are FREE. Search and download functionalities are using the official Maven repository.

me.paulschwarz.springdotenv.DotenvApplicationInitializer Maven / Gradle / Ivy

There is a newer version: 4.0.0
Show newest version
package me.paulschwarz.springdotenv;

import org.springframework.context.ApplicationContextInitializer;
import org.springframework.context.ConfigurableApplicationContext;

public class DotenvApplicationInitializer implements ApplicationContextInitializer {

  /**
   * Initialize the given application context.
   *
   * @param applicationContext the application to configure
   */
  @Override
  public void initialize(final ConfigurableApplicationContext applicationContext) {
    DotenvPropertySource.addToEnvironment(applicationContext.getEnvironment());
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy