Skip to content

Commit

Permalink
fix(spring): set autoconfig to be enabled by default. (#1107)
Browse files Browse the repository at this point in the history
This change intend to set the auto-configuration to be enabled by default.
  • Loading branch information
zhumin8 authored Dec 2, 2022
1 parent 59ecb5b commit 9fc2a5c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ private static List<AnnotationNode> createClassAnnotations(
Variable.builder().setName("matchIfMissing").setType(TypeNode.BOOLEAN).build()))
.setValueExpr(
ValueExpr.withValue(
PrimitiveValue.builder().setValue("false").setType(TypeNode.BOOLEAN).build()))
PrimitiveValue.builder().setValue("true").setType(TypeNode.BOOLEAN).build()))
.build();
AnnotationNode conditionalOnPropertyNode =
AnnotationNode.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ import org.threeten.bp.Duration;
@ConditionalOnClass(EchoClient.class)
@ConditionalOnProperty(
value = "com.google.showcase.v1beta1.spring.auto.echo.enabled",
matchIfMissing = false)
matchIfMissing = true)
@EnableConfigurationProperties({EchoSpringProperties.class, GlobalProperties.class})
public class EchoSpringAutoConfiguration {
private final EchoSpringProperties clientProperties;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import org.threeten.bp.Duration;
@ConditionalOnClass(EchoClient.class)
@ConditionalOnProperty(
value = "com.google.showcase.v1beta1.spring.auto.echo.enabled",
matchIfMissing = false)
matchIfMissing = true)
@EnableConfigurationProperties({EchoSpringProperties.class, GlobalProperties.class})
public class EchoSpringAutoConfiguration {
private final EchoSpringProperties clientProperties;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import org.threeten.bp.Duration;
@ConditionalOnClass(EchoClient.class)
@ConditionalOnProperty(
value = "com.google.showcase.v1beta1.spring.auto.echo.enabled",
matchIfMissing = false)
matchIfMissing = true)
@EnableConfigurationProperties({EchoSpringProperties.class, GlobalProperties.class})
public class EchoSpringAutoConfiguration {
private final EchoSpringProperties clientProperties;
Expand Down

0 comments on commit 9fc2a5c

Please sign in to comment.