public class DotenvPropertySource extends org.springframework.core.env.PropertySource<DotenvPropertyLoader>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DOTENV_PROPERTY_SOURCE_NAME
Name of the env
PropertySource. |
| Constructor and Description |
|---|
DotenvPropertySource() |
DotenvPropertySource(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
static void |
addToEnvironment(org.springframework.core.env.ConfigurableEnvironment environment) |
java.lang.Object |
getProperty(java.lang.String name)
Return the value associated with the given name, or
null if not found. |
public static final java.lang.String DOTENV_PROPERTY_SOURCE_NAME
PropertySource.public DotenvPropertySource(java.lang.String name)
public DotenvPropertySource()
public java.lang.Object getProperty(java.lang.String name)
null if not found.getProperty in class org.springframework.core.env.PropertySource<DotenvPropertyLoader>name - the property to findPropertyResolver.getRequiredProperty(String)public static void addToEnvironment(org.springframework.core.env.ConfigurableEnvironment environment)