mirror of
https://gitee.com/dcren/initializr.git
synced 2026-09-19 06:17:42 +08:00
Fix use of deprecated API
This commit is contained in:
+1
-1
@@ -61,7 +61,7 @@ public class ProjectGenerationStatPublisher {
|
|||||||
StatsProperties.Elastic elastic = statsProperties.getElastic();
|
StatsProperties.Elastic elastic = statsProperties.getElastic();
|
||||||
if (StringUtils.hasText(elastic.getUsername())) {
|
if (StringUtils.hasText(elastic.getUsername())) {
|
||||||
this.restTemplate = restTemplateBuilder
|
this.restTemplate = restTemplateBuilder
|
||||||
.basicAuthorization(elastic.getUsername(), elastic.getPassword())
|
.basicAuthentication(elastic.getUsername(), elastic.getPassword())
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user