1
我想通過jquery get或post調用控制器內的方法。 但是,在成功的數據我越來越完整的HTML。我期待返回的JSON對象應該可用。Spring Web Flow + Jquery ajax + JSON
我想通過jquery get或post調用控制器內的方法。 但是,在成功的數據我越來越完整的HTML。我期待返回的JSON對象應該可用。Spring Web Flow + Jquery ajax + JSON
有一些選項:其中一個正在使用Jettison進行編組,如以下文章中所述:http://blog.bdoughan.com/2011/04/jaxb-and-json-via-jettison.html。
另一種方法是使用JSON Marshaller序列化JSON返回:https://code.google.com/p/jsonmarshaller/