mirror of
https://gitee.com/dcren/initializr.git
synced 2025-05-04 20:58:03 +08:00
Fix use of deprecated API
This commit is contained in:
parent
b58df93e12
commit
8a4cd3d6a1
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user