yaml配置文件中,支持占位符配置
person:
name: bill${random.int}
age: 4
happy: true
birth: 2023/01/15
maps: {k1: v1,k2: v2}
hello: hello
lists:
- cat
- dog
- fish
dog:
name: ${person.hello:hi}
age: 2
person
@Component
@ConfigurationProperties(prefix = "person")
public class Person {
private String name;
private Integer age;
private Boolean happy;
private Date birth;
private Map<String,Object> maps;
private List