@Configuration
public class WebConfig
extends org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
| 构造器和说明 |
|---|
WebConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) |
void |
addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry) |
void |
configureMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters) |
Map<String,String> |
getApiServices() |
org.apache.http.client.HttpClient |
getHttpClient() |
org.springframework.web.client.RestTemplate |
getRestTemplate() |
addArgumentResolvers, addCorsMappings, addFormatters, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidatorpublic void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
addInterceptors 在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigureraddInterceptors 在类中 org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapterpublic void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
addResourceHandlers 在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigureraddResourceHandlers 在类中 org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapterpublic void configureMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
configureMessageConverters 在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurerconfigureMessageConverters 在类中 org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter@Bean public org.springframework.web.client.RestTemplate getRestTemplate()
@Bean public org.apache.http.client.HttpClient getHttpClient()
Copyright © 2019 GTMAP. All rights reserved.