类 Profiles
java.lang.Object
org.springframework.boot.context.config.Profiles
Provides access to environment profiles that have either been set directly on the
Environment
or will be set based on configuration data property values.- 从以下版本开始:
- 2.4.0
- 作者:
- Phillip Webb, Madhura Bhave
-
字段概要
字段修饰符和类型字段说明static final String
Name of property to set to specify additionally included active profiles. -
方法概要
修饰符和类型方法说明Return the accepted profiles.Return the active profiles.Return the default profiles.boolean
isAccepted
(String profile) Return if the given profile is active.iterator()
Return an iterator for allaccepted profiles
.toString()
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 java.lang.Iterable
forEach, spliterator
-
字段详细资料
-
INCLUDE_PROFILES_PROPERTY_NAME
Name of property to set to specify additionally included active profiles.- 另请参阅:
-
-
方法详细资料
-
iterator
Return an iterator for allaccepted profiles
. -
getActive
Return the active profiles.- 返回:
- the active profiles
-
getDefault
Return the default profiles.- 返回:
- the active profiles
-
getAccepted
Return the accepted profiles.- 返回:
- the accepted profiles
-
isAccepted
Return if the given profile is active.- 参数:
profile
- the profile to test- 返回:
- if the profile is active
-
toString
-