package com.emato.ccnet.wx.config; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Component; import java.io.Serializable; import java.util.HashMap; import java.util.Map; @Component @ConfigurationProperties(prefix="cus") //接收application.yml中的pays下面的属性 public class Cus implements Serializable { private static final long serialVersionUID = -2913008001943191086L; private Map order = new HashMap<>(); //接收order里面的属性值 private Map waybill = new HashMap<>(); //接收waybill里面的属性值 private Map play = new HashMap<>(); //接收play里面的属性值 private Map message = new HashMap<>();//接收message里面的属性值 public Map getOrder() { return order; } public void setOrder(Map order) { this.order = order; } public Map getWaybill() { return waybill; } public void setWaybill(Map waybill) { this.waybill = waybill; } public Map getPlay() { return play; } public void setPlay(Map play) { this.play = play; } public Map getMessage() { return message; } public void setMessage(Map message) { this.message = message; } }