-
Notifications
You must be signed in to change notification settings - Fork 41.5k
Closed
Description
EnvironmentEndpointAutoConfiguration
has a bean with name environmentWebEndpointExtension
of type EnvironmentEndpointWebExtension
and LifecycleMvcEndpointAutoConfiguration
also has bean with same name environmentWebEndpointExtension
but of type EnvironmentWebEndpointExtension
which seems right.
I think we should change the name for bean of type EnvironmentEndpointWebExtension
or I am missing something here?
Below from LifecycleMvcEndpointAutoConfiguration:
@Configuration
@ConditionalOnClass(EnvironmentEndpoint.class)
@ConditionalOnWebApplication
protected static class EndpointConfiguration {
@Bean
@ConditionalOnBean(EnvironmentEndpoint.class)
@ConditionalOnEnabledEndpoint
public EnvironmentWebEndpointExtension environmentWebEndpointExtension(
EnvironmentManager environment) {
return new EnvironmentWebEndpointExtension(environment);
}
}
Below from EnvironmentEndpointAutoConfiguration:
@Bean
@ConditionalOnMissingBean
@ConditionalOnEnabledEndpoint
@ConditionalOnBean(EnvironmentEndpoint.class)
public EnvironmentEndpointWebExtension environmentWebEndpointExtension(
EnvironmentEndpoint environmentEndpoint) {
return new EnvironmentEndpointWebExtension(environmentEndpoint);
}
Metadata
Metadata
Assignees
Labels
type: bugA general bugA general bug