fix discovery endpoint when no register
@@ -33,6 +33,12 @@ import org.springframework.context.annotation.Configuration;
@ConditionalOnNacosDiscoveryEnabled
public class NacosDiscoveryEndpointAutoConfiguration {
+ @Bean
+ @ConditionalOnMissingBean
+ public NacosDiscoveryProperties nacosProperties() {
+ return new NacosDiscoveryProperties();
+ }
+
@Bean
@ConditionalOnMissingBean
@ConditionalOnEnabledEndpoint
