摘要: 背景:由于项目需要,需要在原有的框架中加入restful风格的元素并且不影响原有的系统使用。原有的框架Controller层使用的是Struts2,因此考虑使用Struts2的REST-Plugin插件。准备:相关的jar:struts2-core-2.3.15.jarstruts2-rest-plugin-2.3.15.jarstruts2-convention-plugin-2.3.15.jarxstream-1.4.2.jarxwork-core-2.3.15.jarxmlpull-1.1.3.1.jar开始:根据官方的文档说明,首先是配置文档struts.xml:说明:struts.c 阅读全文
posted @ 2013-07-05 10:40 yiyi_2 阅读(1141) 评论(0) 推荐(0) 编辑