Does spring boot 2.1.x support yaml 1.2 specification

徘徊边缘 提交于 2021-02-10 14:23:42

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!