@EnableAopLogController @AutoConfigureAfter(value=RestTemplate4OkHttp3ClientAutoConfiguration.class) @Configuration public class WebAutoConfiguration extends AbstractWebMvcConfigurer
| Constructor and Description |
|---|
WebAutoConfiguration()
初始化
|
| Modifier and Type | Method and Description |
|---|---|
RestClient |
restClient()
创建Rest API 工具类,用于发送 HTTP 请求
|
extendMessageConverters, readerBodyHttpServletRequestFilter, webRequestLogFilterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, getMessageCodesResolver, getValidator@ConditionalOnBean(value=org.springframework.web.client.RestTemplate.class) @ConditionalOnMissingBean @Scope(scopeName="singleton") @Bean public RestClient restClient()
Copyright © 2018–2019. All rights reserved.