0
点赞
收藏
分享

微信扫一扫

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

天使魔鬼 2022-08-17 阅读 62

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

 

 

用法

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

 

举报

相关推荐

0 条评论