# 应用环境
# 公共配置
spring:
profiles:
active: dev
---
# 设置环境
# 生产环境
spring:
profiles: pro
server:
port: 80
---
# 开发环境
spring:
profiles: dev
server:
port: 81
---
# 测试环境
spring:
config:
activate:
on-profile: test
server:
port: 82
--------------------------------------------
server:
port: 80
spring:
datasource:
druid:#连接池
driver-class-name
常用的配置文件application.yml
最新推荐文章于 2023-12-29 13:58:20 发布