Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
103 views
in Technique[技术] by (71.8m points)

Properties to YAML

I'm new to yaml , how to merge below yaml file with 3 properties which i picked from a property file?

spring:
  application:
    name: abc
logging:
  pattern:
    console: "%d [%thread] %-5level %logger{36} - %m %nopex%n"
  level:
    com.abc.def: DEBUG
    org.springframework: ERROR
    root: ERROR

how to merge above yaml with below properties?

spring.datasource.hikari.connection-test-query: SELECT 1 FROM DUAL
spring.datasource.hikari.connection-timeout=60000
spring.datasource.hikari.maximum-pool-size=5

I am not sure where to place them and how to place them. I can see online properties to yaml converter tools but i don't know how to merge both.

If I am not wrong , even few spaces and indentation is important in yaml. so that makes it difficult to define yaml file. What if by mistake if I give extra space in indentation in yaml? will it change the meaning? I find properties file more readable.

question from:https://stackoverflow.com/questions/65839364/properties-to-yaml

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...