如何把静态常量放在yml配置文件中

application.yml
RSA:
pubKeyText : 123

在代码中
@Value("${RSA.pubKeyText}")
String PublicKey;
调用时直接取
System.out.println(PublicKey);
原文地址:https://www.cnblogs.com/yxj808/p/13409055.html