写接口把json格式封装起来 用post请求的接口的方式 框架用springmvc
参考:
http://my.oschina.net/haopeng/blog/324934
就是用springmvc返回一个json就可以