首页
技术
登录
6mi
u
盘
搜
搜 索
技术
SpringBoot中的配置文件占位符
SpringBoot中的配置文件占位符
技术
2024-06-30
167
1,随机的
$
{
random
.
value
}
$
{
random
.
int
}
$
{
random
.
long
}
$
{
random
.
int
(
10
)
}
$
{
random
.
int
[
1024
,
65536
]
}
2,可以引用在配置文件中配置的其他属性的值,如果使用一个没有在配置文件中的属性,则会原样输出。 3,可以用:冒号来指定默认值。
转载请注明原文地址:https://ipadbbs.8miu.com/read-50453.html
最新回复
(
0
)