springmvc2.5.6实现webservice rest接口实例

时间:2019-08-23 05:58:31
【文件属性】:
文件名称:springmvc2.5.6实现webservice rest接口实例
文件大小:6.41MB
文件格式:RAR
更新时间:2019-08-23 05:58:31
webservice 1、访问地址:http://localhost:8080/springmvc/user/hello?userId=123456 2、配置步骤: 1)引入架包; 2)写controller类 3)写application-yg-servlet.xml 4)配置web.xml 3、不足之处 spring-webmvc-2.5.6.jar不支持@PathVariable注解,参数必须采用传统方式的?传递;3以上版本就支持@PathVariable注解,允许的话,建议采用SpringMVC4,增加了一些新特性 ;
【文件预览】:
springmvcrest
----.project(1KB)
----src()
--------application-yg-servlet.xml(1KB)
--------com()
--------说明.txt(435B)
----WebRoot()
--------WEB-INF()
--------classes()
--------META-INF()
----.settings()
--------org.eclipse.wst.jsdt.ui.superType.container(49B)
--------org.eclipse.wst.common.project.facet.core.xml(345B)
--------org.eclipse.jdt.core.prefs(598B)
--------org.eclipse.wst.jsdt.ui.superType.name(6B)
--------org.eclipse.core.resources.prefs(57B)
--------org.eclipse.wst.common.component(490B)
--------org.hibernate.eclipse.console.prefs(81B)
--------.jsdtscope(500B)
----.classpath(2KB)

网友评论

  • 很不错 可以使用