Open jongpak opened 5 years ago
apply plugin: 'io.spring.dependency-management'
WebMvcConfigurerAdapter
WebMvcConfigurer
EmbeddedServletContainerCustomizer
ServletWebServerFactory
RestTemplateBuilder().requestFactory(factory)
RestTemplateBuilder().requestFactory(() -> factory)
RestTemplateBuilder.setConnectTimeout(int connectTimeout)
RestTemplateBuilder.setConnectTimeout(Duration connectTimeout)
gradle
boot 5
WebMvcConfigurerAdapter
->WebMvcConfigurer
(Interface)boot 2
EmbeddedServletContainerCustomizer
->ServletWebServerFactory
RestTemplateBuilder().requestFactory(factory)
->RestTemplateBuilder().requestFactory(() -> factory)
RestTemplateBuilder.setConnectTimeout(int connectTimeout)
->RestTemplateBuilder.setConnectTimeout(Duration connectTimeout)