PropertiesProxy propertiesProxy = new PropertiesProxy("application-local.yml");
List keys = propertiesProxy.getKeys();
for (String key : keys) {
System.out.println(key);
}
输出为:
server
webService
KAFKA-USER
scheduled
logging
(有很多没有输出出来,也获取不到,spring之类的,自己定义的也有许多获取不到)