-
Notifications
You must be signed in to change notification settings - Fork 1
Tosan HttpClient Spring Boot Starter 3.0.0 Migration Guide
This document is meant to help you migrate your application to Tosan HttpClient Spring Boot Starter 3.0.x.
Before you start the upgrade, make sure to upgrade to the latest available 2.0.2 version. This will make sure that you are building against the most recent dependencies of that line.
Tosan HttpClient Spring Boot Starter 3.0 requires Spring Boot 3.0 and Spring Cloud 2022.0.1 and Java 17 or later. It also requires Spring Framework 6.0.
Once you have reviewed the state of your project and its dependencies, upgrade to the latest maintenance release of Tosan HttpClient Spring Boot Starter 3.0.
Spring Boot 2.7 introduced a new META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports file for registering auto-configurations. So you must replace spring.factories with org.springframework.boot.autoconfigure.AutoConfiguration.imports in where generate your server api sdk.
The return type of the apacheHttpClientFactory(..) method has been replaced with the ConfigurableApacheHttpClientFactory, previously this method returned the ApacheHttpClientFactory type.
The connectionManagerFactory(..) method has been replaced with connectionManagerBuilder(..) and The return type of this method is PoolingHttpClientConnectionManagerBuilder, previous method returned the ApacheHttpClientConnectionManagerFactory type.