From 9e9660a245104b3ea67bbc5305dd4df36c6f0c2a Mon Sep 17 00:00:00 2001 From: Olga MaciaszekSharma Date: Fri, 10 Nov 2023 15:28:59 +0100 Subject: [PATCH] Make AbstractDiscoveryClientOptionalArgs really optional. --- .../cloud/netflix/eureka/EurekaClientAutoConfiguration.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-cloud-netflix-eureka-client/src/main/java/org/springframework/cloud/netflix/eureka/EurekaClientAutoConfiguration.java b/spring-cloud-netflix-eureka-client/src/main/java/org/springframework/cloud/netflix/eureka/EurekaClientAutoConfiguration.java index 29776c7b91..dee674b328 100644 --- a/spring-cloud-netflix-eureka-client/src/main/java/org/springframework/cloud/netflix/eureka/EurekaClientAutoConfiguration.java +++ b/spring-cloud-netflix-eureka-client/src/main/java/org/springframework/cloud/netflix/eureka/EurekaClientAutoConfiguration.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2022 the original author or authors. + * Copyright 2013-2023 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -257,7 +257,7 @@ protected static class EurekaClientConfiguration { @Autowired private ApplicationContext context; - @Autowired + @Autowired(required = false) private AbstractDiscoveryClientOptionalArgs optionalArgs; @Bean(destroyMethod = "shutdown") @@ -293,7 +293,7 @@ protected static class RefreshableEurekaClientConfiguration { @Autowired private ApplicationContext context; - @Autowired + @Autowired(required = false) private AbstractDiscoveryClientOptionalArgs optionalArgs; @Bean(destroyMethod = "shutdown")