application.yml文件 profiles设置两个参数
eureka:
client:
serviceUrl:
defaultZone: http://localhost:8761/eureka/
logging:
level:
org:
springframework:
boot: info
spring:
application:
name: user-service
---
spring:
profiles: s8001
server:
port: 8001
---
spring:
profiles: s8010
server:
port: 8010
启动idea

启动时候设置–spring.profiles.active=s8001
博客介绍了Spring Boot相关操作,在application.yml文件的profiles中设置两个参数,在启动Idea时,通过设置–spring.profiles.active=s8001来启动。
1万+

被折叠的 条评论
为什么被折叠?



