SpringBoot学习_配置文件占位符

随机数

${random.value}、${random.int}、${random.long}
${random.int(10)}、${random.int[1024,65536]}

例子:
在这里插入图片描述

占位符获取之前配置的值,如果没有可以用:指定默认值

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_36901488/article/details/83055193