package com.amox.demo.httpService;
import org.springframework.beans.factory.annotation.Autowired;
import com.amox.common.annotation.PathMapping;
import com.amox.common.annotation.RequestMethod;
import com.amox.demo.bmo.HttpBmo;
public class HttpServiceDemoImpl implements HttpServiceDemo {
@Autowired
private HttpBmo httpBmo;
@PathMapping("/demoGetService")
public String demoGet(String request, Long index) {
return "demoGetService : " + httpBmo.demo(request, index);
}
@PathMapping(value="/demoPostService", method=RequestMethod.POST)
public String demoPost(String request, Double index) {
return "demoPostService : " + httpBmo.demo(request, index);
}
@PathMapping(value="/demoBothService", method={RequestMethod.POST, RequestMethod.GET} )
public String demoBoth(String request, Integer index) {
return "demoBothService : " + httpBmo.demo(request, index);
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
我们都知道java的web项目可以对外发布webService服务和http服务,通过xfire只可以很方便的发布webService服务,但是java发布http服务一直不方便。通过java原生的servlet发布http服务可以方便其它平台调用,但是编程比较麻烦而且不太适合目前的j2ee的编程思想,此方式不太合适;通过spring的http-invorke发布的http服务,可以方便快速,但在客户端必须依赖spring本身才能调用,在移动平台火爆的今天许多移动平台原生支持http调用,此种http服务的发布方式显然也不合适;为达到目前j2ee的编程思想并且能方便快速用于其它平台的调用为此产生了本软件(amox-http),本软件可以方便快速的发布http服务,可以跨平台调用。
资源推荐
资源详情
资源评论
收起资源包目录
amox-http-demo.zip (62个子文件)
amox-http-demo
src
com
amox
demo
bmo
HttpBmoImpl.java 279B
HttpBmo.java 115B
httpService
HttpServiceDemoImpl.java 919B
HttpServiceDemo.java 878B
.classpath 565B
.DS_Store 6KB
.mymetadata 315B
.settings
com.genuitec.eclipse.j2eedt.core.prefs 1KB
org.eclipse.wst.jsdt.ui.superType.container 49B
org.eclipse.wst.common.project.facet.core.xml 245B
org.eclipse.wst.jsdt.ui.superType.name 6B
org.eclipse.wst.common.component 538B
.jsdtscope 488B
org.eclipse.jdt.core.prefs 387B
configs
jdbc.properties 309B
commParams.properties 359B
log4j.properties 801B
.project 2KB
WebRoot
META-INF
MANIFEST.MF 36B
index.jsp 829B
WEB-INF
classes
com
amox
demo
bmo
HttpBmoImpl.class 923B
HttpBmo.class 187B
httpService
HttpServiceDemoImpl.class 2KB
HttpServiceDemo.class 369B
jdbc.properties 309B
commParams.properties 359B
log4j.properties 801B
springs
spring-config.xml 1005B
.DS_Store 6KB
lib
org.springframework.asm-3.1.2.RELEASE.jar 52KB
mybatis-spring-1.1.2-SNAPSHOT.jar 40KB
org.springframework.jdbc-3.1.2.RELEASE.jar 395KB
org.springframework.web-3.1.2.RELEASE.jar 536KB
commons-logging-1.1.1.jar 59KB
commons-io-2.4.jar 181KB
jdom-1.1.3.jar 148KB
javassist.jar 689KB
org.springframework.transaction-3.1.2.RELEASE.jar 239KB
dom4j-1.6.1.jar 307KB
org.springframework.web.servlet-3.1.2.RELEASE.jar 564KB
org.springframework.aop-3.1.2.RELEASE.jar 325KB
org.springframework.expression-3.1.2.RELEASE.jar 172KB
xfire-all-1.2.6.jar 883KB
XmlSchema-1.1.jar 125KB
aopalliance-1.0.jar 4KB
org.springframework.core-3.1.2.RELEASE.jar 439KB
mysql-connector-java-5.1.22-bin.jar 813KB
commons-httpclient-3.1.jar 298KB
.DS_Store 6KB
commons-fileupload-1.2.2.jar 58KB
org.springframework.beans-3.1.2.RELEASE.jar 578KB
log4j-1.2.16.jar 470KB
amox-http-1.7.jar 24KB
wsdl4j.jar 145KB
org.springframework.context-3.1.2.RELEASE.jar 813KB
ojdbc14.jar 1.47MB
commons-pool-1.6.jar 109KB
mybatis-3.1.1.jar 636KB
commons-codec-1.7.jar 254KB
aspectjweaver.jar 1.47MB
commons-dbcp-1.4.jar 157KB
web.xml 2KB
共 62 条
- 1
资源评论
- 没落魔鬼2017-04-08没什么用!
- 钢筋裤衩蛋2019-08-28很好 很好 不错不错
Qi_w2006
- 粉丝: 5
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功