Spring Boot 配置文件

This commit is contained in:
JeffLi1993
2017-04-20 13:50:09 +08:00
committed by liqiangqiang
parent b592e7948f
commit 4222985d43
9 changed files with 56 additions and 38 deletions

View File

@@ -0,0 +1,4 @@
## 家乡属性 Dev
home.province=ZheJiang
home.city=WenLing
home.desc=dev: I'm living in ${home.province} ${home.city}.

View File

@@ -0,0 +1,4 @@
## 家乡属性 Prod
home.province=ZheJiang
home.city=WenLing
home.desc=prod: I'm living in ${home.province} ${home.city}.

View File

@@ -0,0 +1,3 @@
# Spring Profiles Active
spring.main.banner-mode=off
spring.profiles.active=dev

View File

@@ -1,12 +0,0 @@
## 家乡属性
home:
province: 浙江省
city: 温岭松门
desc: 我家住在${home.province}的${home.city}
## 随机属性
user:
id: ${random.long}
age: ${random.int[1,200]}
desc: 泥瓦匠叫做${random.value}
uuid: ${random.uuid}