采用http协议请求系统接口一次传输多个文件和属性

上传者: happy0012002 | 上传时间: 2021-08-06 21:23:44 | 文件大小: 76KB | 文件类型: RAR
原来系统中采用webservice技术进行系统间通信,传递bean属性和文件。现在采用http协议代替,速度更快,更便捷。使用java httpclient做的一个demo,采用springboot框架,下载后放idea里面就可以运行。

文件下载

资源详情

[{"title":"( 58 个子文件 76KB ) 采用http协议请求系统接口一次传输多个文件和属性","children":[{"title":"httpClientTest","children":[{"title":"pom.xml <span style='color:#111;'> 1.56KB </span>","children":null,"spread":false},{"title":"target","children":[{"title":"classes","children":[{"title":"application.properties <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"com","children":[{"title":"example","children":[{"title":"demo","children":[{"title":"User.class <span style='color:#111;'> 993B </span>","children":null,"spread":false},{"title":"TestController.class <span style='color:#111;'> 2.22KB </span>","children":null,"spread":false},{"title":"Main.class <span style='color:#111;'> 4.35KB </span>","children":null,"spread":false},{"title":"HttpClientTestApplication.class <span style='color:#111;'> 734B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"generated-sources","children":[{"title":"annotations","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"mvnw <span style='color:#111;'> 8.90KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"test","children":[{"title":"java","children":[{"title":"com","children":[{"title":"example","children":[{"title":"demo","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"resources","children":[{"title":"application.properties <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"example","children":[{"title":"demo","children":[{"title":"User.java <span style='color:#111;'> 681B </span>","children":null,"spread":false},{"title":"HttpClientTestApplication.java <span style='color:#111;'> 326B </span>","children":null,"spread":false},{"title":"TestController.java <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false},{"title":"Main.java <span style='color:#111;'> 2.67KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".idea","children":[{"title":"misc.xml <span style='color:#111;'> 2.67KB </span>","children":null,"spread":false},{"title":"copyright","children":[{"title":"profiles_settings.xml <span style='color:#111;'> 76B </span>","children":null,"spread":false}],"spread":true},{"title":"modules.xml <span style='color:#111;'> 268B </span>","children":null,"spread":false},{"title":"encodings.xml <span style='color:#111;'> 172B </span>","children":null,"spread":false},{"title":"compiler.xml <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false},{"title":"workspace.xml <span style='color:#111;'> 42.03KB </span>","children":null,"spread":false},{"title":"libraries","children":[{"title":"Maven__org_springframework_boot_spring_boot_starter_tomcat_1_5_19_RELEASE.xml <span style='color:#111;'> 748B </span>","children":null,"spread":false},{"title":"Maven__org_yaml_snakeyaml_1_17.xml <span style='color:#111;'> 495B </span>","children":null,"spread":false},{"title":"Maven__org_springframework_spring_context_4_3_22_RELEASE.xml <span style='color:#111;'> 644B </span>","children":null,"spread":false},{"title":"Maven__org_springframework_boot_spring_boot_1_5_19_RELEASE.xml <span style='color:#111;'> 643B </span>","children":null,"spread":false},{"title":"Maven__org_slf4j_jcl_over_slf4j_1_7_25.xml <span style='color:#111;'> 548B </span>","children":null,"spread":false},{"title":"Maven__org_springframework_spring_expression_4_3_22_RELEASE.xml <span style='color:#111;'> 665B </span>","children":null,"spread":false},{"title":"Maven__com_fasterxml_jackson_core_jackson_core_2_8_11.xml <span style='color:#111;'> 602B </span>","children":null,"spread":false},{"title":"Maven__org_springframework_spring_core_4_3_22_RELEASE.xml <span style='color:#111;'> 623B </span>","children":null,"spread":false},{"title":"Maven__org_springframework_spring_beans_4_3_22_RELEASE.xml <span style='color:#111;'> 630B </span>","children":null,"spread":false},{"title":"Maven__ch_qos_logback_logback_classic_1_1_11.xml <span style='color:#111;'> 575B </span>","children":null,"spread":false},{"title":"Maven__org_apache_tomcat_tomcat_annotations_api_8_5_37.xml <span style='color:#111;'> 636B </span>","children":null,"spread":false},{"title":"Maven__org_springframework_spring_web_4_3_22_RELEASE.xml <span style='color:#111;'> 616B </span>","children":null,"spread":false},{"title":"Maven__org_springframework_boot_spring_boot_autoconfigure_1_5_19_RELEASE.xml <span style='color:#111;'> 741B </span>","children":null,"spread":false},{"title":"Maven__com_fasterxml_jackson_core_jackson_databind_2_8_11_3.xml <span style='color:#111;'> 644B </span>","children":null,"spread":false},{"title":"Maven__org_springframework_boot_spring_boot_starter_logging_1_5_19_RELEASE.xml <span style='color:#111;'> 755B </span>","children":null,"spread":false},{"title":"Maven__org_springframework_spring_aop_4_3_22_RELEASE.xml <span style='color:#111;'> 616B </span>","children":null,"spread":false},{"title":"Maven__commons_codec_commons_codec_1_10.xml <span style='color:#111;'> 543B </span>","children":null,"spread":false},{"title":"Maven__org_slf4j_slf4j_api_1_7_25.xml <span style='color:#111;'> 513B </span>","children":null,"spread":false},{"title":"Maven__com_fasterxml_jackson_core_jackson_annotations_2_8_0.xml <span style='color:#111;'> 644B </span>","children":null,"spread":false},{"title":"Maven__org_apache_httpcomponents_httpcore_4_4_10.xml <span style='color:#111;'> 570B </span>","children":null,"spread":false},{"title":"Maven__org_slf4j_log4j_over_slf4j_1_7_25.xml <span style='color:#111;'> 562B </span>","children":null,"spread":false},{"title":"Maven__org_slf4j_jul_to_slf4j_1_7_25.xml <span style='color:#111;'> 534B </span>","children":null,"spread":false},{"title":"Maven__org_apache_tomcat_embed_tomcat_embed_websocket_8_5_37.xml <span style='color:#111;'> 660B </span>","children":null,"spread":false},{"title":"Maven__org_springframework_spring_webmvc_4_3_22_RELEASE.xml <span style='color:#111;'> 637B </span>","children":null,"spread":false},{"title":"Maven__org_springframework_boot_spring_boot_starter_1_5_19_RELEASE.xml <span style='color:#111;'> 699B </span>","children":null,"spread":false},{"title":"Maven__org_apache_httpcomponents_httpclient_4_5_6.xml <span style='color:#111;'> 577B </span>","children":null,"spread":false},{"title":"Maven__com_fasterxml_classmate_1_3_4.xml <span style='color:#111;'> 522B </span>","children":null,"spread":false},{"title":"Maven__org_apache_tomcat_embed_tomcat_embed_core_8_5_37.xml <span style='color:#111;'> 625B </span>","children":null,"spread":false},{"title":"Maven__org_jboss_logging_jboss_logging_3_3_2_Final.xml <span style='color:#111;'> 608B </span>","children":null,"spread":false},{"title":"Maven__org_apache_httpcomponents_httpmime_4_5_2.xml <span style='color:#111;'> 563B </span>","children":null,"spread":false},{"title":"Maven__ch_qos_logback_logback_core_1_1_11.xml <span style='color:#111;'> 554B </span>","children":null,"spread":false},{"title":"Maven__org_apache_tomcat_embed_tomcat_embed_el_8_5_37.xml <span style='color:#111;'> 611B </span>","children":null,"spread":false},{"title":"Maven__org_springframework_boot_spring_boot_starter_web_1_5_19_RELEASE.xml <span style='color:#111;'> 727B </span>","children":null,"spread":false},{"title":"Maven__javax_validation_validation_api_1_1_0_Final.xml <span style='color:#111;'> 611B </span>","children":null,"spread":false},{"title":"Maven__org_hibernate_hibernate_validator_5_3_6_Final.xml <span style='color:#111;'> 634B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"httpClientTest.iml <span style='color:#111;'> 4.74KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 269B </span>","children":null,"spread":false},{"title":".mvn","children":[{"title":"wrapper","children":[{"title":"maven-wrapper.jar <span style='color:#111;'> 47.20KB </span>","children":null,"spread":false},{"title":"maven-wrapper.properties <span style='color:#111;'> 116B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"mvnw.cmd <span style='color:#111;'> 5.67KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

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