jsonplugin 0.32 0.34 官方下载 http://code.google.com/p/jsonplugin/
文档:http://code.google.com/p/jsonplugin/wiki/Documentation
https://cwiki.apache.org/confluence/display/WW/JSON%20Plugin
<!-- Result fragment --> <result type="json"> <param name="excludeProperties"> login.password, studentList.*\.sin </param> </result> <!-- Interceptor fragment --> <interceptor-ref name="json"> <param name="enableSMD">true</param> <param name="excludeProperties"> login.password, studentList.*\.sin </param> </interceptor-ref>
<!-- Result fragment --> <result type="json"> <param name="includeProperties"> ^entries\[\d+\]\.clientNumber, ^entries\[\d+\]\.scheduleNumber, ^entries\[\d+\]\.createUserId </param> </result>
对集合 listAttachment.*, listAttachment\[\d+\] 含义是不同的
listAttachment.*, 指listAttachment集合对象本身
listAttachment\[\d+\] 指listAttachment集合对象中的元素