@Configuration@ConfigurationProperties(prefix = "stable")@Getter@Setter@ToStringpublic class StableCoinConfig { private Map coinNameIdMap; private String handleFee; private List coinNames; private Boolean feeFree; public List getCoinNames(){ if (coinNames == null){ coinNames = new ArrayList<>(coinNameIdMap.keySet()); } return coinNames; }}
来源地址:https://blog.csdn.net/liyanqiang19/article/details/126668058