Skip to content

Commit

Permalink
fix: 文档错误, mvc中的@ok的JsonFormat格式竟然写了等号
Browse files Browse the repository at this point in the history
  • Loading branch information
wendal committed Jun 2, 2016
1 parent 49459fd commit a1fec5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/manual/json/mvc.man
Expand Up @@ -46,7 +46,7 @@ Mvc中使用Json
详细配置, 后面的就是JsonFormat的json形式而已,与JsonFormat的属性一一对应

{{{
@Ok("json:{ignoreNull=true, locked:'password|salt'}")
@Ok("json:{ignoreNull:true, locked:'password|salt'}")

// 翻译为Java代码的话

Expand All @@ -56,7 +56,7 @@ Mvc中使用Json
示例配置 -- 忽略password和salt属性,且缩进为一个空格

{{{
@Ok("json:{indentBy=' ', locked:'password|salt'}")
@Ok("json:{indentBy:' ', locked:'password|salt'}")
}}}

示例配置2 -- 设置日期格式为yyyyMMdd
Expand Down

0 comments on commit a1fec5a

Please sign in to comment.