#激活开发环境
spring.profiles.active=dev
server:
port: 8080
spring:
profiles:
active: prod
my-swagger:
title: Swagger2的在线生成API文档
description: 欢迎来到这里
version: v1.0.0
termsOfServiceUrl: 欢迎来到这里
license: The Apache License
licenseUrl: http://www.baidu.com
swagger:
enable: false
---
server:
port: 8081
spring:
profiles: dev
---
server:
port: 8082
spring:
profiles: prod
原文:https://www.cnblogs.com/shunWcs/p/14902745.html