Yaml yaml = new Yaml(); LinkedHashMap linkedHashMap = yaml.load(RiskApplication.class.getClassLoader().getResourceAsStream("application-dev.yml")); Object version = linkedHashMap.get("version"); return version.toString();
京公网安备 11010502049817号