我的 application.yml 文件如下。如何将其转换为 application.properties 我正在尝试但如何在同一个文件中写入多个属性。它给了我重复的关键错误。
---
spring:
profiles: peer1
eureka:
instance:
hostname: peer1
client:
serviceUrl:
defaultZone: http://peer2/eureka/
---
spring:
profiles: peer2
eureka:
instance:
hostname: peer2
client:
serviceUrl:
defaultZone: http://peer1/eureka/