thrift开发入门,php客户端调用java服务方,实现跨语言调用

上传者: m20103410 | 上传时间: 2023-11-22 09:05:59 | 文件大小: 6.96MB | 文件类型: RAR
压缩包分为三个部分,java工程(java的服务方,和java客户端) php工程,php的客户端 linux环境的服务方部署包以及脚本 其中myserver.tar.gz压缩包是linux环境的部署包, 在linux环境先解压, tar -zxvf myserver.tar.gz ./ 启动的时候进入 myserver/mysh/目录 然后运行 restart_thrift.sh 脚本就可以直接启动 ps 一下进程是否正常,如果错误请查看日志 然后就可以使用线下的php直接调用, 代码是从网上找到的,比较容易入门 当然也可以直接导入java目录下的java工程,直接运行服务端更简单

文件下载

资源详情

[{"title":"( 86 个子文件 6.96MB ) thrift开发入门,php客户端调用java服务方,实现跨语言调用","children":[{"title":"thrift (1)","children":[{"title":"java","children":[{"title":"myserver","children":[{"title":".project <span style='color:#111;'> 560B </span>","children":null,"spread":false},{"title":"pom.xml <span style='color:#111;'> 3.31KB </span>","children":null,"spread":false},{"title":"target","children":null,"spread":false},{"title":".settings","children":[{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 664B </span>","children":null,"spread":false},{"title":"org.eclipse.m2e.core.prefs <span style='color:#111;'> 98B </span>","children":null,"spread":false}],"spread":true},{"title":"依赖的包","children":[{"title":"commons-logging-1.0.3.jar <span style='color:#111;'> 30.86KB </span>","children":null,"spread":false},{"title":"commons-lang-2.4.jar <span style='color:#111;'> 255.67KB </span>","children":null,"spread":false},{"title":"httpcore-4.2.4.jar <span style='color:#111;'> 221.95KB </span>","children":null,"spread":false},{"title":"commons-logging-1.1.1-sources.jar <span style='color:#111;'> 73.22KB </span>","children":null,"spread":false},{"title":"slf4j-log4j12-1.5.8.jar <span style='color:#111;'> 9.45KB </span>","children":null,"spread":false},{"title":"log4j-1.2.14.jar <span style='color:#111;'> 358.83KB </span>","children":null,"spread":false},{"title":"libthrift-0.9.2.jar <span style='color:#111;'> 222.38KB </span>","children":null,"spread":false},{"title":"httpclient-4.2.5.jar <span style='color:#111;'> 423.21KB </span>","children":null,"spread":false},{"title":"slf4j-simple-1.5.8.jar <span style='color:#111;'> 7.41KB </span>","children":null,"spread":false},{"title":"commons-codec-1.2.jar <span style='color:#111;'> 29.38KB </span>","children":null,"spread":false},{"title":"commons-codec-1.4-sources.jar <span style='color:#111;'> 79.45KB </span>","children":null,"spread":false},{"title":"servlet-api-6.0.43.jar <span style='color:#111;'> 129.82KB </span>","children":null,"spread":false},{"title":"slf4j-api-1.5.8.jar <span style='color:#111;'> 22.90KB </span>","children":null,"spread":false},{"title":"commons-httpclient-3.0.jar <span style='color:#111;'> 272.83KB </span>","children":null,"spread":false},{"title":"com.springsource.org.apache.httpcomponents.httpcore-4.1.jar <span style='color:#111;'> 179.73KB </span>","children":null,"spread":false},{"title":"junit-4.4.jar <span style='color:#111;'> 157.69KB </span>","children":null,"spread":false}],"spread":false},{"title":"src","children":[{"title":"test","children":[{"title":"resources","children":null,"spread":false},{"title":"java","children":null,"spread":false}],"spread":true},{"title":"main","children":[{"title":"resources","children":null,"spread":false},{"title":"java","children":[{"title":"HelloServiceImpl.java <span style='color:#111;'> 660B </span>","children":null,"spread":false},{"title":"HelloServiceClient.java <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"HelloServiceServer.java <span style='color:#111;'> 2.05KB </span>","children":null,"spread":false},{"title":"hellodemo","children":[{"title":"Hello.java <span style='color:#111;'> 136.77KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":".classpath <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false},{"title":"thrift.exe <span style='color:#111;'> 4.66MB </span>","children":null,"spread":false},{"title":"Hello.thrift <span style='color:#111;'> 234B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"服务部署","children":[{"title":"myserver.tar.gz <span style='color:#111;'> 2.30MB </span>","children":null,"spread":false},{"title":"启动说明.txt <span style='color:#111;'> 460B </span>","children":null,"spread":false}],"spread":true},{"title":"php","children":[{"title":"thrift-java-php","children":[{"title":".project <span style='color:#111;'> 525B </span>","children":null,"spread":false},{"title":".settings","children":[{"title":"org.eclipse.php.debug.core.Debug_Process_Preferences.prefs <span style='color:#111;'> 85B </span>","children":null,"spread":false},{"title":"org.eclipse.php.core.prefs <span style='color:#111;'> 91B </span>","children":null,"spread":false}],"spread":true},{"title":"php","children":[{"title":"php","children":[{"title":"ClientDemo.php <span style='color:#111;'> 1.57KB </span>","children":null,"spread":false}],"spread":true},{"title":"gen-php","children":[{"title":"hellodemo","children":[{"title":"Types.php <span style='color:#111;'> 462B </span>","children":null,"spread":false},{"title":"Hello.php <span style='color:#111;'> 24.16KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"phplib","children":[{"title":"lib","children":[{"title":"Thrift","children":[{"title":"Exception","children":[{"title":"TException.php <span style='color:#111;'> 10.73KB </span>","children":null,"spread":false},{"title":"TTransportException.php <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false},{"title":"TApplicationException.php <span style='color:#111;'> 2.25KB </span>","children":null,"spread":false},{"title":"TProtocolException.php <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false}],"spread":true},{"title":"Type","children":[{"title":"TType.php <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false},{"title":"TMessageType.php <span style='color:#111;'> 993B </span>","children":null,"spread":false},{"title":"TConstant.php <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false}],"spread":false},{"title":"Server","children":[{"title":"TForkingServer.php <span style='color:#111;'> 2.58KB </span>","children":null,"spread":false},{"title":"TServerTransport.php <span style='color:#111;'> 929B </span>","children":null,"spread":false},{"title":"TServer.php <span style='color:#111;'> 2.28KB </span>","children":null,"spread":false},{"title":"TServerSocket.php <span style='color:#111;'> 1.77KB </span>","children":null,"spread":false},{"title":"TSimpleServer.php <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false}],"spread":false},{"title":"Transport","children":[{"title":"TSocketPool.php <span style='color:#111;'> 8.14KB </span>","children":null,"spread":false},{"title":"TTransport.php <span style='color:#111;'> 2.30KB </span>","children":null,"spread":false},{"title":"TNullTransport.php <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false},{"title":"TFramedTransport.php <span style='color:#111;'> 4.39KB </span>","children":null,"spread":false},{"title":"TCurlClient.php <span style='color:#111;'> 5.46KB </span>","children":null,"spread":false},{"title":"THttpClient.php <span style='color:#111;'> 5.37KB </span>","children":null,"spread":false},{"title":"TMemoryBuffer.php <span style='color:#111;'> 2.37KB </span>","children":null,"spread":false},{"title":"TSocket.php <span style='color:#111;'> 8.61KB </span>","children":null,"spread":false},{"title":"TBufferedTransport.php <span style='color:#111;'> 4.63KB </span>","children":null,"spread":false},{"title":"TPhpStream.php <span style='color:#111;'> 3.03KB </span>","children":null,"spread":false}],"spread":false},{"title":"Serializer","children":[{"title":"TBinarySerializer.php <span style='color:#111;'> 3.03KB </span>","children":null,"spread":false}],"spread":false},{"title":"StringFunc","children":[{"title":"Core.php <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"TStringFunc.php <span style='color:#111;'> 961B </span>","children":null,"spread":false},{"title":"Mbstring.php <span style='color:#111;'> 1.53KB </span>","children":null,"spread":false}],"spread":false},{"title":"Protocol","children":[{"title":"TCompactProtocol.php <span style='color:#111;'> 17.55KB </span>","children":null,"spread":false},{"title":"TMultiplexedProtocol.php <span style='color:#111;'> 2.80KB </span>","children":null,"spread":false},{"title":"TJSONProtocol.php <span style='color:#111;'> 19.01KB </span>","children":null,"spread":false},{"title":"TBinaryProtocol.php <span style='color:#111;'> 9.00KB </span>","children":null,"spread":false},{"title":"JSON","children":[{"title":"PairContext.php <span style='color:#111;'> 1.79KB </span>","children":null,"spread":false},{"title":"ListContext.php <span style='color:#111;'> 1.46KB </span>","children":null,"spread":false},{"title":"BaseContext.php <span style='color:#111;'> 1022B </span>","children":null,"spread":false},{"title":"LookaheadReader.php <span style='color:#111;'> 1.48KB </span>","children":null,"spread":false}],"spread":false},{"title":"TBinaryProtocolAccelerated.php <span style='color:#111;'> 2.52KB </span>","children":null,"spread":false},{"title":"TProtocolDecorator.php <span style='color:#111;'> 7.23KB </span>","children":null,"spread":false},{"title":"TProtocol.php <span style='color:#111;'> 8.77KB </span>","children":null,"spread":false}],"spread":false},{"title":"Base","children":[{"title":"TBase.php <span style='color:#111;'> 10.56KB </span>","children":null,"spread":false}],"spread":false},{"title":"Factory","children":[{"title":"TStringFuncFactory.php <span style='color:#111;'> 1.92KB </span>","children":null,"spread":false},{"title":"TProtocolFactory.php <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":"TJSONProtocolFactory.php <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false},{"title":"TBinaryProtocolFactory.php <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"TCompactProtocolFactory.php <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false},{"title":"TTransportFactory.php <span style='color:#111;'> 269B </span>","children":null,"spread":false}],"spread":false},{"title":"ClassLoader","children":[{"title":"ThriftClassLoader.php <span style='color:#111;'> 6.13KB </span>","children":null,"spread":false}],"spread":false},{"title":"TMultiplexedProcessor.php <span style='color:#111;'> 5.15KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"readme.txt <span style='color:#111;'> 70B </span>","children":null,"spread":false}],"spread":true},{"title":".buildpath <span style='color:#111;'> 174B </span>","children":null,"spread":false},{"title":"thrift.exe <span style='color:#111;'> 4.66MB </span>","children":null,"spread":false},{"title":"Hello.thrift <span style='color:#111;'> 234B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"启动说明.txt <span style='color:#111;'> 612B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明