mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-03 15:59:31 +00:00
Update `RestClientAutoConfiguration` to ensure that it applies after `HttpMessageConvertersAutoConfiguration`. Prior to this commit, the `HttpMessageConvertersRestClientCustomizer` bean might not get created due to the `@ConditionalOnBean` guard not finding any `ClientHttpMessageConvertersCustomizer` beans. Since the issue is surprising hard to replicate in a unit test, a new smoke test has been added to ensure the problem doesn't return. Fixes gh-49223
11 lines
376 B
Java
11 lines
376 B
Java
package aaaa;
|
|
|
|
import org.springframework.boot.autoconfigure.AutoConfiguration;
|
|
|
|
@AutoConfiguration(afterName = { "org.springframework.boot.restclient.autoconfigure.RestClientAutoConfiguration",
|
|
"org.springframework.boot.restclient.autoconfigure.RestTemplateAutoConfiguration" })
|
|
class Gh49223AutoConfiguration {
|
|
|
|
// Class must be in a package name that is ordered early
|
|
|
|
} |