in src/productservice/productservice-provider/src/main/java/com/alibabacloud/hipstershop/productservice/ProductServiceApplication.java [22:46]
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) {}
}