springboot yaml 配置管理

#所有环境公用的配置属性
management:
endpoint:
health:
show-details: always
endpoints:
web:
exposure:
include: '*'
info:
app-name: pay
author: xiaofeiyang
email: 469821953@qq.com

spring:
profiles:
active: prod
#连字符
---
# profile=x的专用属性,也就是某个环境下的专用属性
#开发环境
spring:
profiles: dev
---
# profile=y的专用属性,也就是某个环境下的专用属性
#生产环境
spring:
profiles: prod
server:
tomcat:
max-threads: 300
max-connections: 1000
---
posted on 2020-02-14 10:16  清浊  阅读(878)  评论(0)    收藏  举报