一:配置文件占位符
- RandomValuePropertySource:配置文件中使用随机数
${random.value},${random.int},${random.lang}
${random.int(10)},${random.int{1024,644546}}
- 属性配置文件占位符:可以在配置文件中引用前面配置过的属性,使用${name:默认值}来指定找不到属性时的默认值
person.dog.name=${person.lastName:hello}dog
${random.value},${random.int},${random.lang}
${random.int(10)},${random.int{1024,644546}}
person.dog.name=${person.lastName:hello}dog