springboot yaml 配置管理

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

spring:
profiles:
active: prod
#连字符
---
# profile=x的专用属性,也就是某个环境下的专用属性
#开发环境
spring:
profiles: dev
---
# profile=y的专用属性,也就是某个环境下的专用属性
#生产环境
spring:
profiles: prod
server:
tomcat:
max-threads: 300
max-connections: 1000
---

猜你喜欢

转载自www.cnblogs.com/xiaofeiyang/p/12306421.html