配置文件占位符
1、随机数
常用以下几种随机
${random.value}、${random.int}、${random.long}
${random.int(10)}、${random.int[1024,65536]}
2、占位符获取之前配置的值,如果没有可以是用:指定默认值
都是按添加的随机代码输出
person.last-name=张三${random.uuid}
person.age=${random.int}
person.birth=2017/12/15
person.boss=false
person.maps.k1=v1
person.maps.k2=14
person.lists=a,b,c
person.dog.name=${person.hello:hello}_dog
person.dog.age=15

本文深入探讨了配置文件中使用的各种占位符,包括随机数生成方式如${random.value}
5291

被折叠的 条评论
为什么被折叠?



