springboot配置文件占位符(尚硅谷)

用法

person.uuid=user_${random.uuid}
#person.first-name=尼古拉
person.age=${random.int}
#取不到属性的时候冒号后面的是默认值
person.name=${person.first-name:尼古拉}.赵四

猜你喜欢

转载自www.cnblogs.com/passedbylove/p/12640565.html