@Bean
    public ShenyuDiscoveryClient shenyuDiscoveryClient(final ObjectProvider<ShenyuInstanceRegisterRepository> registerRepository, final RegisterConfig registerConfig) {
        if (Objects.isNull(registerRepository.getIfAvailable())) {
            return new ShenyuDiscoveryClient(registerConfig);
        }
        return new ShenyuDiscoveryClient(registerRepository.getIfAvailable(), registerConfig);
    }
shenyu custom discovery client with register center type.
@param registerRepository registerRepository
@param registerConfig registerConfig
@return ShenyuDiscoveryClient
shenyu-spring-boot-starter/shenyu-spring-boot-starter-sdk-feign/src/main/java/org/apache/shenyu/springboot/starter/sdk/feign/ShenyuSdkAutoConfiguration.java