Skip to content

Tosan HttpClient Spring Boot Starter 3.0.0 Migration Guide

Ali Alimohammadi edited this page Apr 25, 2023 · 10 revisions

This document is meant to help you migrate your application to Tosan HttpClient Spring Boot Starter 3.0.x.

Before You Start

Upgrade to the Latest 2.0.2 Version

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.

Review System Requirements

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.

Upgrade to Tosan HttpClient Spring Boot Starter 3.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.

Auto-configuration Files

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.

Pages

Release Notes

Migration Guides

Clone this wiki locally