配置读取使用UTF-8编码

pull/11/head
kosmosr 2 years ago
parent f07213e629
commit d759c4f510

@ -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

Loading…
Cancel
Save