问题
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?
回答1:
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
来源:https://stackoverflow.com/questions/56558270/does-spring-boot-2-1-x-support-yaml-1-2-specification