Class DotenvApplicationRunListener
- java.lang.Object
-
- me.paulschwarz.springdotenv.springboot.DotenvApplicationRunListener
-
- All Implemented Interfaces:
org.springframework.boot.SpringApplicationRunListener
@Order(-2147483648) public class DotenvApplicationRunListener extends java.lang.Object implements org.springframework.boot.SpringApplicationRunListener
-
-
Constructor Summary
Constructors Constructor Description DotenvApplicationRunListener(org.springframework.boot.SpringApplication application, java.lang.String[] args)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidenvironmentPrepared(org.springframework.boot.ConfigurableBootstrapContext bootstrapContext, org.springframework.core.env.ConfigurableEnvironment environment)Add theDotenvPropertySourceto the application's environment.
-
-
-
Method Detail
-
environmentPrepared
public void environmentPrepared(org.springframework.boot.ConfigurableBootstrapContext bootstrapContext, org.springframework.core.env.ConfigurableEnvironment environment)Add theDotenvPropertySourceto the application's environment.- Specified by:
environmentPreparedin interfaceorg.springframework.boot.SpringApplicationRunListener- Parameters:
bootstrapContext- the bootstrap contextenvironment- the environment
-
-