de.codecentric.boot.admin.server.cloud.discovery.DefaultServiceInstanceConverter Java Examples
The following examples show how to use
de.codecentric.boot.admin.server.cloud.discovery.DefaultServiceInstanceConverter.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AdminServerDiscoveryAutoConfiguration.java From Moss with Apache License 2.0 | 4 votes |
@Bean @ConditionalOnMissingBean({ServiceInstanceConverter.class}) @ConfigurationProperties(prefix = "spring.boot.admin.discovery.converter") public DefaultServiceInstanceConverter serviceInstanceConverter() { return new DefaultServiceInstanceConverter(); }
Example #2
Source File: AdminServerDiscoveryAutoConfigurationTest.java From Moss with Apache License 2.0 | 4 votes |
@Test public void defaultServiceInstanceConverter() { contextRunner.withUserConfiguration(SimpleDiscoveryClientAutoConfiguration.class) .run(context -> assertThat(context.getBean(ServiceInstanceConverter.class)).isInstanceOf( DefaultServiceInstanceConverter.class)); }
Example #3
Source File: MossServerDiscoveryAutoConfiguration.java From Moss with Apache License 2.0 | 4 votes |
@ConditionalOnMissingBean({ServiceInstanceConverter.class}) @Bean public DefaultServiceInstanceConverter serviceInstanceConverter() { return new DefaultServiceInstanceConverter(); }
Example #4
Source File: MossServerDiscoveryAutoConfiguration.java From Moss with Apache License 2.0 | 4 votes |
@Bean @ConditionalOnMissingBean({ServiceInstanceConverter.class}) public DefaultServiceInstanceConverter serviceInstanceConverter() { return new DefaultServiceInstanceConverter(); }
Example #5
Source File: AdminServerDiscoveryAutoConfiguration.java From spring-boot-admin with Apache License 2.0 | 4 votes |
@Bean @ConditionalOnMissingBean({ ServiceInstanceConverter.class }) @ConfigurationProperties(prefix = "spring.boot.admin.discovery.converter") public DefaultServiceInstanceConverter serviceInstanceConverter() { return new DefaultServiceInstanceConverter(); }
Example #6
Source File: AdminServerDiscoveryAutoConfigurationTest.java From spring-boot-admin with Apache License 2.0 | 4 votes |
@Test public void defaultServiceInstanceConverter() { this.contextRunner.withUserConfiguration(SimpleDiscoveryClientAutoConfiguration.class) .run((context) -> assertThat(context.getBean(ServiceInstanceConverter.class)) .isInstanceOf(DefaultServiceInstanceConverter.class)); }