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

profile

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

Take in account bean definitions enclosed in the provided lambda when the profile is accepted.

See Also

org.springframework.core.env.Profiles.of