I would like to have @EnableReactiveElasticsearchRepositories
enabled only when the specific profile is present.
In Kotlin Bean DSL I can define the following condition:
environment(
{ activeProfiles.contains("local") },
{
bean<...>()
// ...
}
)
I would like to have the same condition when @EnableReactiveElasticsearchRepositories
is present.