yml 文件中读取值
@Component
@ConfigurationProperties(prefix = "appacc.paywx")
public class PayConfig {
public static String orderquery;
public static String getOrderquery() {
return orderquery;
}
public static void setOrderquery(String orderquery) {
PayConfig.orderquery = orderquery;
}
}
app*.yml
appacc:
paywx:
orderquery: "http"
网友评论