@ConfigurationProperties(prefix="app", ignoreUnknownFields=true) public class AppProperties extends Object implements org.springframework.beans.factory.InitializingBean
Configuration properties for spring-boot applications. see:
ServerProperties
Modifier and Type | Field and Description |
---|---|
static String |
CI |
static String |
CI_ENV |
static AppType |
DEFAULT_APP_TYPE |
static String |
DEVELOPMENT |
static String |
DEVELOPMENT_ENV |
static String |
DOT_ENV |
static String |
PRODUCTION |
static String |
PRODUCTION_ENV |
static Pattern |
PROFILE_PATTERN |
Constructor and Description |
---|
AppProperties() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
String |
getEnv() |
static String |
getEnvironment(org.springframework.core.env.Environment environment) |
Boolean |
getProdEnvironment() |
static Boolean |
getProdEnvironment(String env) |
AppSecurityProperties |
getSecurity() |
String |
getSecurityDefaultTestUser() |
Boolean |
getSecurityEnabled() |
Boolean |
getSecurityUseTestUser() |
AppType |
getType() |
void |
setEnvironment(org.springframework.core.env.Environment environment) |
public static final Pattern PROFILE_PATTERN
public static final String DOT_ENV
public static final String PRODUCTION
public static final String PRODUCTION_ENV
public static final String CI
public static final String CI_ENV
public static final String DEVELOPMENT
public static final String DEVELOPMENT_ENV
public static final AppType DEFAULT_APP_TYPE
public static String getEnvironment(org.springframework.core.env.Environment environment)
public Boolean getProdEnvironment()
@Autowired public void setEnvironment(org.springframework.core.env.Environment environment)
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public AppType getType()
public String getEnv()
public AppSecurityProperties getSecurity()
public String getSecurityDefaultTestUser()
public Boolean getSecurityEnabled()
public Boolean getSecurityUseTestUser()
Copyright © 2017. All rights reserved.