spring boot 2.1.x 是否支持 yaml 1.2 规范 [英] Does spring boot 2.1.x support yaml 1.2 specification

查看:74
本文介绍了spring boot 2.1.x 是否支持 yaml 1.2 规范的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

spring boot 2.1.x 是否支持 yaml 1.2 规范?

Does spring boot 2.1.x support yaml 1.2 specification?

如果没有,是否可以使用 yaml 1.2 + snakeyaml-engine 来支持 spring boot application.yml?

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

推荐答案

Spring Boot 使用snakeyaml 1.23.

Spring Boot uses snakeyaml 1.23.

从描述来看,这是 YAML 1.1

From the description this is YAML 1.1

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

因为 Snakeyaml-engine 支持 YAML 而不是snakeyaml API 不兼容所以你将无法在 Spring Boot 中使用它

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

这篇关于spring boot 2.1.x 是否支持 yaml 1.2 规范的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆