Skip to content

Commit

Permalink
fix discovery endpoint when no register
Browse files Browse the repository at this point in the history
  • Loading branch information
flystar32 committed Apr 3, 2019
1 parent e3dafdd commit 3363ad2
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@
@ConditionalOnNacosDiscoveryEnabled
public class NacosDiscoveryEndpointAutoConfiguration {

@Bean
@ConditionalOnMissingBean
public NacosDiscoveryProperties nacosProperties() {
return new NacosDiscoveryProperties();
}

@Bean
@ConditionalOnMissingBean
@ConditionalOnEnabledEndpoint
Expand Down

0 comments on commit 3363ad2

Please sign in to comment.