接口的使用
org.springframework.core.env.Profiles
使用Profiles的程序包 程序包 说明 org.springframework.core.env Spring's environment abstraction consisting of bean definition profile and hierarchical property source support.org.springframework.core.env中Profiles的使用
返回Profiles的org.springframework.core.env中的方法 修饰符和类型 方法 说明 static Profiles
Profiles. of(String... profiles)
Create a newProfiles
instance that checks for matches against the given profile strings.参数类型为Profiles的org.springframework.core.env中的方法 修饰符和类型 方法 说明 boolean
AbstractEnvironment. acceptsProfiles(Profiles profiles)
boolean
Environment. acceptsProfiles(Profiles profiles)
Return whether the active profiles match the givenProfiles
predicate.