mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Make AutoConfigureRestClient auto-configure JSON
See gh-46356 See gh-47322
This commit is contained in:
+2
@@ -25,6 +25,7 @@ import java.lang.annotation.Target;
|
||||
|
||||
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
|
||||
import org.springframework.boot.restclient.RestTemplateBuilder;
|
||||
import org.springframework.boot.test.autoconfigure.json.AutoConfigureJson;
|
||||
import org.springframework.web.client.RestClient.Builder;
|
||||
|
||||
/**
|
||||
@@ -38,6 +39,7 @@ import org.springframework.web.client.RestClient.Builder;
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
@Inherited
|
||||
@AutoConfigureJson
|
||||
@ImportAutoConfiguration
|
||||
public @interface AutoConfigureRestClient {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user