yaml文件配置多端口:
server:
port: 8081//默认端口号
spring:
profiles:
active: dev//激活dev这个端口
---
server:
port: 8082
spring:
profiles: test
---
server:
port: 8083
spring:
profiles: dev
---
server:
port: 8084
spring:
profiles: dev1
2024-04-13 10:43:21
yaml文件配置多端口:
server:
port: 8081//默认端口号
spring:
profiles:
active: dev//激活dev这个端口
---
server:
port: 8082
spring:
profiles: test
---
server:
port: 8083
spring:
profiles: dev
---
server:
port: 8084
spring:
profiles: dev1