Anypoint Studio - DataWeave 1.0 - 如何添加评论?
Anypoint Studio - DataWeave 1.0 - How to add comments?
是否可以在 Anypoint Studio 中向我们的 DataWeave v1.0 脚本添加注释?
是的。您可以添加 single-line 评论:
%dw 1.0
%output application/java
%namespace ns0 http://www.namespace.com/resource
---
{
// This is a comment.
id: payload.id
}
但要注意:不允许到处评论。例如;文件末尾的注释暂时无效。
另请参阅 MuleSoft 论坛中的相关主题:Comments in DataWeave
是否可以在 Anypoint Studio 中向我们的 DataWeave v1.0 脚本添加注释?
是的。您可以添加 single-line 评论:
%dw 1.0
%output application/java
%namespace ns0 http://www.namespace.com/resource
---
{
// This is a comment.
id: payload.id
}
但要注意:不允许到处评论。例如;文件末尾的注释暂时无效。
另请参阅 MuleSoft 论坛中的相关主题:Comments in DataWeave