change: 配置新增一层文件型配置抽象.

This commit is contained in:
2024-06-04 14:16:49 +08:00
parent b1b87cdbd9
commit c7a6c3ca80
7 changed files with 43 additions and 9 deletions

View File

@@ -39,7 +39,12 @@ public final class SystemConstants {
/**
* properties配置文件名称
*/
public static final String PROPERTIES_FILE = "settings.properties";
public static final String CONFIG_PROPERTIES_FILE = "settings.properties";
/**
* yaml配置文件名称
*/
public static final String CONFIG_YAML_FILE = "settings.yml";
/**
* 日志配置文件名称
@@ -69,5 +74,10 @@ public final class SystemConstants {
/**
* 用户目录下的.properties配置文件
*/
public static final String USER_SETTINGS_PROPERTIES_PATH = USER_DIR + File.separator + PROPERTIES_FILE;
public static final String USER_SETTINGS_PROPERTIES_PATH = USER_DIR + File.separator + CONFIG_PROPERTIES_FILE;
/**
* 用户目录下的.yml配置文件
*/
public static final String USER_SETTINGS_YAML_PATH = USER_DIR + File.separator + CONFIG_YAML_FILE;
}