}
多环境切换
=====
实际开发项目的时候,分为多套环境,比如开发环境,测试环境,生产环境。不同环境的配置是不一样的。
spring:
profiles:
active: dev
cat:
name: 机器猫${random.int[1,100]}
#sex:
hobbies:
-
吃铜锣烧
-
和小咪聊天
-
用竹蜻蜓飞天
nameAndSex: c a t . n a m e , 性别是 {cat.name},性别是 cat.name,性别是{cat.sex:男}
spring:
profiles: dev
cat:
name: Hello Kitty
#sex:
hobbies:
- 不知道
nameAndSex: c a t . n a m e , 性别是 {cat.name},性别是