@Configuration
@ConditionalOnWebApplication
public class ConfigServerMvcConfiguration
extends org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
Constructor and Description |
---|
ConfigServerMvcConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
configureContentNegotiation(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer) |
EnvironmentController |
environmentController(EnvironmentRepository envRepository,
ConfigServerProperties server) |
ResourceController |
resourceController(ResourceRepository repository,
EnvironmentRepository envRepository,
ConfigServerProperties server) |
addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
public void configureContentNegotiation(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer)
configureContentNegotiation
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
configureContentNegotiation
in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
@Bean public EnvironmentController environmentController(EnvironmentRepository envRepository, ConfigServerProperties server)
@Bean @ConditionalOnBean(value=ResourceRepository.class) public ResourceController resourceController(ResourceRepository repository, EnvironmentRepository envRepository, ConfigServerProperties server)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.