mirror of
https://github.com/JeffLi1993/springboot-learning-example.git
synced 2026-03-15 07:03:49 +08:00
Spring Boot 配置文件
This commit is contained in:
12
springboot-properties/src/test/resouorces/application.yml
Normal file
12
springboot-properties/src/test/resouorces/application.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
## 家乡属性
|
||||
home:
|
||||
province: 浙江省
|
||||
city: 温岭松门
|
||||
desc: 我家住在${home.province}的${home.city}
|
||||
|
||||
## 随机属性
|
||||
user:
|
||||
id: ${random.long}
|
||||
age: ${random.int[1,200]}
|
||||
desc: 泥瓦匠叫做${random.value}
|
||||
uuid: ${random.uuid}
|
||||
Reference in New Issue
Block a user