Annotation for initialization of classes and methods through the existence of a property path.
- Java 11+
- Maven 3.8+
- Spring Boot 3+
There may be cases where it is necessary to determine the initialization of a class by the property path:
@Configuration
@ConditionalOnPropertyPathExist("spring.cloud.azure")
class AzureConfiguration {
...
}
@Configuration
@ConditionalOnPropertyPathExist("spring.cloud.stream.rabbit")
class RabbitMqConfiguration {
...
}