spring-framework / org.springframework.context.support / BeanDefinitionDsl / profile

profile

fun profile(profile: String, init: BeanDefinitionDsl.() -> Unit): BeanDefinitionDsl

Take in account bean definitions enclosed in the provided lambda only when the specified profile is active.