spring boot 工具类中读取配置文件方法

private static String PROPERTY_NAME = "配置文件名";
    private final static ResourceBundle resourceBundle = ResourceBundle.getBundle(PROPERTY_NAME);

    private static String domain=resourceBundle.getString("xxx");;

你可能感兴趣的:(java,spring,boot,java)