Note: The key is not quoted, and the value is quoted
Demo.product. Type = {PC_1587956992488:'RoadGate',PC_1588067595587:'Access'}Copy the code
Note: This object is obtained using the @value annotation, which defaults to null if not configured in Apollo
@Value("#{${demo.product.type:null}}")
private Map<String, String> productType;
Copy the code
Note: Use commas to separate lists, not quotation marks
AreaNameList = 1F,2F,3F,4F,5F,6F,7FCopy the code
Note: Get it using the @value annotation
@Value("#{'${demo.areaNameList}'.split(',')}")
private List<String> areaNameList;
Copy the code