8000 fix(spring): set autoconfig to be enabled by default. (#1107) · googleapis/sdk-platform-java@9fc2a5c · GitHub
[go: up one dir, main page]

Skip to content

Commit 9fc2a5c

Browse files
authored
fix(spring): set autoconfig to be enabled by default. (#1107)
This change intend to set the auto-configuration to be enabled by default.
1 parent 59ecb5b commit 9fc2a5c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/main/java/com/google/api/generator/spring/composer/SpringAutoConfigClassComposer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ private static List<AnnotationNode> createClassAnnotations(
262262
Variable.builder().setName("matchIfMissing").setType(TypeNode.BOOLEAN).build()))
263263
.setValueExpr(
264264
ValueExpr.withValue(
265-
PrimitiveValue.builder().setValue("false").setType(TypeNode.BOOLEAN).build()))
265+
PrimitiveValue.builder().setValue("true").setType(TypeNode.BOOLEAN).build()))
266266
.build();
267267
AnnotationNode conditionalOnPropertyNode =
268268
AnnotationNode.builder()

src/test/java/com/google/api/generator/spring/composer/goldens/EchoSpringAutoConfigurationFull.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ import org.threeten.bp.Duration;
6161
@ConditionalOnClass(EchoClient.class)
6262
@ConditionalOnProperty(
6363
value = "com.google.showcase.v1beta1.spring.auto.echo.enabled",
64-
matchIfMissing = false)
64+
matchIfMissing = true)
6565
@EnableConfigurationProperties({EchoSpringProperties.class, GlobalProperties.class})
6666
public class EchoSpringAutoConfiguration {
6767
private final EchoSpringProperties clientProperties;

src/test/java/com/google/api/generator/spring/composer/goldens/EchoSpringAutoConfigurationGrpc.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import org.threeten.bp.Duration;
4141
@ConditionalOnClass(EchoClient.class)
4242
@ConditionalOnProperty(
4343
value = "com.google.showcase.v1beta1.spring.auto.echo.enabled",
44-
matchIfMissing = false)
44+
matchIfMissing = true)
4545
@EnableConfigurationProperties({EchoSpringProperties.class, GlobalProperties.class})
4646
public class EchoSpringAutoConfiguration {
4747
private final EchoSpringProperties clientProperties;

src/test/java/com/google/api/generator/spring/composer/goldens/EchoSpringAutoConfigurationGrpcRest.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import org.threeten.bp.Duration;
4242
@ConditionalOnClass(EchoClient.class)
4343
@ConditionalOnProperty(
4444
value = "com.google.showcase.v1beta1.spring.auto.echo.enabled",
45-
matchIfMissing = false)
45+
matchIfMissing = true)
4646
@EnableConfigurationProperties({EchoSpringProperties.class, GlobalProperties.class})
4747
public class EchoSpringAutoConfiguration {
4848
private final EchoSpringProperties clientProperties;

0 commit comments

Comments
 (0)
0