Skip to content

Commit

Permalink
mvc @ok中的json 文档完善
Browse files Browse the repository at this point in the history
  • Loading branch information
TomYule committed Jul 19, 2019
1 parent b3a3ba1 commit c550c19
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions doc/manual/json/mvc.man
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,26 @@ Mvc中使用Json
内置的模式,一对一对应JsonFormat中的几个快捷方法

{{{<Java>
/**
* 一般模式 -- 换行,但忽略null值
*/
@Ok("json:nice")
/**
* 全部输出模式 -- 换行,不忽略null值
*/
@Ok("json:full")
/**
* 为了打印出来容易看,把名字去掉引号
*/
@Ok("json:forLook")
/**
* 紧凑模式 -- 无换行,忽略null值
*/
@Ok("json:compact")
/**
* 不换行,不忽略空值
*/
@Ok("json:tidy")
}}}

详细配置, 后面的就是JsonFormat的json形式而已,与JsonFormat的属性一一对应
Expand Down

0 comments on commit c550c19

Please sign in to comment.