From d22b30b508a5edad7469fc1773c51f59d98662a5 Mon Sep 17 00:00:00 2001 From: qingshanpeng Date: Sun, 24 Apr 2022 14:11:06 +0800 Subject: [PATCH] add override annotation for Specification child class --- .../annotation/LoadBalancerClientSpecification.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/annotation/LoadBalancerClientSpecification.java b/spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/annotation/LoadBalancerClientSpecification.java index 81a5b5f7..17a6634d 100644 --- a/spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/annotation/LoadBalancerClientSpecification.java +++ b/spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/annotation/LoadBalancerClientSpecification.java @@ -42,6 +42,7 @@ public class LoadBalancerClientSpecification implements NamedContextFactory.Spec this.configuration = configuration; } + @Override public String getName() { return this.name; } @@ -51,6 +52,7 @@ public class LoadBalancerClientSpecification implements NamedContextFactory.Spec this.name = name; } + @Override public Class[] getConfiguration() { return this.configuration; }