static

in src/frontend/src/main/java/com/alibabacloud/hipstershop/Application.java [33:57]


    static {

        try {
            File file = new File("/etc/podinfo/labels");
            if (file.exists()) {

                Properties properties = new Properties();
                FileReader fr = null;
                try {
                    fr = new FileReader(file);
                    properties.load(fr);
                } catch (IOException e) {
                } finally {
                    if (fr != null) {
                        try {
                            fr.close();
                        } catch (Throwable ignore) {}
                    }
                }
                SERVICE_TAG = properties.getProperty("alicloud.service.tag").replace("\"", "");
            } else {
                SERVICE_TAG = "nil";
            }
        } catch (Throwable ignore) {}
    }