原因: DiscoveryClient包错导为import com.netflix.discovery.DiscoveryClient;
实际上应为import org.springframework.cloud.client.discovery.DiscoveryClient;