mirror of
https://gitee.com/dcren/initializr.git
synced 2025-05-03 04:13:52 +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();
|
||||
if (StringUtils.hasText(elastic.getUsername())) {
|
||||
this.restTemplate = restTemplateBuilder
|
||||
.basicAuthorization(elastic.getUsername(), elastic.getPassword())
|
||||
.basicAuthentication(elastic.getUsername(), elastic.getPassword())
|
||||
.build();
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user