diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/client/RestTemplateBuilder.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/client/RestTemplateBuilder.java index 8ceb9d680b00..0972c7a6a659 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/client/RestTemplateBuilder.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/client/RestTemplateBuilder.java @@ -379,6 +379,7 @@ public RestTemplateBuilder errorHandler(ResponseErrorHandler errorHandler) { * @deprecated since 2.1.0 in favor of * {@link #basicAuthentication(String username, String password)} */ + @Deprecated public RestTemplateBuilder basicAuthorization(String username, String password) { return basicAuthentication(username, password); }