From 039baee47d1c4805c21dd3105b95e7884fb87549 Mon Sep 17 00:00:00 2001 From: chuntaojun Date: Fri, 5 Jul 2019 17:18:25 +0800 Subject: [PATCH] refactor(api): Restore the yaml() method to be compatible with older clients --- .../config/annotation/NacosConfigurationProperties.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/api/src/main/java/com/alibaba/nacos/api/config/annotation/NacosConfigurationProperties.java b/api/src/main/java/com/alibaba/nacos/api/config/annotation/NacosConfigurationProperties.java index 2d2cf6480..faf3af58f 100644 --- a/api/src/main/java/com/alibaba/nacos/api/config/annotation/NacosConfigurationProperties.java +++ b/api/src/main/java/com/alibaba/nacos/api/config/annotation/NacosConfigurationProperties.java @@ -57,6 +57,15 @@ public @interface NacosConfigurationProperties { */ String dataId(); + /** + * set config type is yaml + * this method is deprecated, we support you use {@link #type()} to set config type + * + * @return + */ + @Deprecated + boolean yaml() default false; + /** * config style *