From d759c4f5108197a86d3707804ce3f6049f375f2d Mon Sep 17 00:00:00 2001 From: kosmosr Date: Wed, 6 Jul 2022 18:05:51 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E8=AF=BB=E5=8F=96=E4=BD=BF?= =?UTF-8?q?=E7=94=A8UTF-8=E7=BC=96=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java3y/austin/support/service/impl/ConfigServiceImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/austin-support/src/main/java/com/java3y/austin/support/service/impl/ConfigServiceImpl.java b/austin-support/src/main/java/com/java3y/austin/support/service/impl/ConfigServiceImpl.java index f163d72..860e84e 100644 --- a/austin-support/src/main/java/com/java3y/austin/support/service/impl/ConfigServiceImpl.java +++ b/austin-support/src/main/java/com/java3y/austin/support/service/impl/ConfigServiceImpl.java @@ -7,6 +7,8 @@ import com.java3y.austin.support.service.ConfigService; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; +import java.nio.charset.StandardCharsets; + /** * @author 3y @@ -19,7 +21,7 @@ public class ConfigServiceImpl implements ConfigService { * 本地配置 */ private static final String PROPERTIES_PATH = "local.properties"; - private Props props = new Props(PROPERTIES_PATH); + private Props props = new Props(PROPERTIES_PATH, StandardCharsets.UTF_8); /** * apollo配置