yaml文件中如何实现字符串连接呢?
下文笔者讲述YAML中字符串连接的方法及示例分享,如下所示
YAML字符串连接,我们可使用字符串变量的方式进行连接例:
test.yaml
server:
port: 62000
spring:
application:
name: 'appname'
eureka:
client:
service-url:
defaultZone: 'http://localhost:8088/eureka/'
instance:
instance-id: ${spring.application.name}:${server.port}
版权声明
本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。


