一,服务器端:
首先搭建struts2的环境,导入必要的类库。
web.xml文件:
struts.xml文件:
Action类:
访问 http://localhost:8080/Client/getjson.action;结果:
二,android客户端:
Activity类:
list.xml
主要的交互都是通过goolge的Gson完成
一,服务器端:
首先搭建struts2的环境,导入必要的类库。
web.xml文件:
二,android客户端:
Activity类:
主要的交互都是通过goolge的Gson完成
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。