BAEL-4871 Spring Conditional Annotations

This commit is contained in:
majewsk6 2021-05-16 20:03:39 +02:00
parent 6f757f33b3
commit 2d1d9f3ec5
1 changed files with 3 additions and 3 deletions

View File

@ -9,9 +9,9 @@ import org.springframework.stereotype.Service;
@Service
@Conditional(IsDevEnvCondition.class)
@ConditionalOnProperty(
value = "logging.enabled",
havingValue = "true",
matchIfMissing = true)
value = "logging.enabled",
havingValue = "true",
matchIfMissing = true)
@ConditionalOnExpression("${logging.enabled:true} and ${logging.level:DEBUG}")
@ConditionalOnJava(ConditionalOnJava.JavaVersion.EIGHT)
@Conditional(IsWindowsCondition.class)