Search code examples
spring-bootyamlsnakeyaml

Does spring boot 2.1.x support yaml 1.2 specification


Does spring boot 2.1.x support yaml 1.2 specification?

If not, is it possible to use yaml 1.2 + snakeyaml-engine for the spring boot application.yml support?


Solution

  • Spring Boot uses snakeyaml 1.23.

    From the description this is YAML 1.1

    <description>YAML 1.1 parser and emitter for Java</description>
    

    Because YAML is supported by snakeyaml-engine and not in snakeyaml the API is not compatible so you will not be able to use it in Spring Boot