@Component public class Profiles extends Object
Constructor and Description |
---|
Profiles() |
Modifier and Type | Method and Description |
---|---|
static boolean |
getProfile(String profileName)
获取profile的值
|
static void |
init(org.springframework.core.env.Environment environment)
初始化环境
|
public static void init(org.springframework.core.env.Environment environment)
environment
- environmentpublic static boolean getProfile(String profileName)
profileName
- profile nameCopyright © 2018 lodsve. All rights reserved.