From 495fe8656a3ef5d8ee9c7460c94f043d067c7c75 Mon Sep 17 00:00:00 2001 From: onewe Date: Wed, 2 Nov 2022 14:35:19 +0800 Subject: [PATCH] [ISSUE #8622] rollback about app name --- .../nacos/client/auth/ram/identify/CredentialService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/main/java/com/alibaba/nacos/client/auth/ram/identify/CredentialService.java b/client/src/main/java/com/alibaba/nacos/client/auth/ram/identify/CredentialService.java index 9bad09f72b5..a207b4ee1bb 100644 --- a/client/src/main/java/com/alibaba/nacos/client/auth/ram/identify/CredentialService.java +++ b/client/src/main/java/com/alibaba/nacos/client/auth/ram/identify/CredentialService.java @@ -44,7 +44,7 @@ public final class CredentialService implements SpasCredentialLoader { private CredentialService(String appName) { if (appName == null) { - String value = AppNameUtils.getAppName(); + String value = System.getProperty(IdentifyConstants.PROJECT_NAME_PROPERTY); if (StringUtils.isNotEmpty(value)) { appName = value; }