JAVA: quarkus读取配置文件

1.appliation.properties添加配置
%dev.yourName=beiyang
2.在类中注入配置值
@ConfigProperty(name = “yourName”)
private String yourName;

你可能感兴趣的:(JAVA基础)