首页 开发技术 Java     /    Springboot+Apache2实现远程linux服务器上传下载文件代码

Springboot+Apache2实现远程linux服务器上传下载文件代码

上传者: qq_36802726 | 上传时间:2024/9/17 10:18:29 | 文件大小:31.55MB | 文件类型:rar
Springboot+Apache2实现远程linux服务器上传下载文件代码
实现Springboot+Apache2实现远程linux服务器上传下载文件的代码,这是保存文件的代码,需要把代码运行到有apache服务的服务器,把路径改成你的就可以,然后请求里面的接口就可以进行文件下载和上传了。
可以看我博客有一些讲解https://blog.csdn.net/qq_36802726/article/details/88748319

文件下载

资源详情

[{"title":"(90个子文件31.55MB)Springboot+Apache2实现远程linux服务器上传下载文件代码","children":[{"title":"upload","children":[{"title":"upload.iml <span style='color:#111;'>7.71KB</span>","children":null,"spread":false},{"title":"src","children":[{"title":"test","children":[{"title":"java","children":[{"title":"com","children":[{"title":"zc","children":[{"title":"upload","children":[{"title":"UploadApplicationTests.java <span style='color:#111;'>339B</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"resources","children":[{"title":"templates","children":null,"spread":false},{"title":"static","children":null,"spread":false},{"title":"application.yml <span style='color:#111;'>280B</span>","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"zc","children":[{"title":"upload","children":[{"title":"api","children":[{"title":"API.java <span style='color:#111;'>3.83KB</span>","children":null,"spread":false}],"spread":true},{"title":"UploadApplication.java <span style='color:#111;'>318B</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"target","children":[{"title":"generated-test-sources","children":[{"title":"test-annotations","children":null,"spread":false}],"spread":true},{"title":"maven-status","children":[{"title":"maven-compiler-plugin","children":[{"title":"testCompile","children":[{"title":"default-testCompile","children":[{"title":"createdFiles.lst <span style='color:#111;'>0B</span>","children":null,"spread":false},{"title":"inputFiles.lst <span style='color:#111;'>77B</span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"compile","children":[{"title":"default-compile","children":[{"title":"createdFiles.lst <span style='color:#111;'>0B</span>","children":null,"spread":false},{"title":"inputFiles.lst <span style='color:#111;'>134B</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},{"title":"classes","children":[{"title":"com","children":[{"title":"zc","children":[{"title":"upload","children":[{"title":"api","children":[{"title":"API.class <span style='color:#111;'>4.87KB</span>","children":null,"spread":false}],"spread":true},{"title":"UploadApplication.class <span style='color:#111;'>733B</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"application.yml <span style='color:#111;'>239B</span>","children":null,"spread":false}],"spread":true},{"title":"surefire-reports","children":[{"title":"TEST-com.zc.upload.UploadApplicationTests.xml <span style='color:#111;'>17.07KB</span>","children":null,"spread":false},{"title":"com.zc.upload.UploadApplicationTests.txt <span style='color:#111;'>325B</span>","children":null,"spread":false}],"spread":true},{"title":"upload-0.0.1-SNAPSHOT.jar <span style='color:#111;'>17.86MB</span>","children":null,"spread":false},{"title":"maven-archiver","children":[{"title":"pom.properties <span style='color:#111;'>91B</span>","children":null,"spread":false}],"spread":true},{"title":"upload-0.0.1-SNAPSHOT.jar.original <span style='color:#111;'>5.08KB</span>","children":null,"spread":false},{"title":"test-classes","children":[{"title":"com","children":[{"title":"zc","children":[{"title":"upload","children":[{"title":"UploadApplicationTests.class <span style='color:#111;'>622B</span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"upload-0.0.22-SNAPSHOT.jar <span style='color:#111;'>17.86MB</span>","children":null,"spread":false}],"spread":true},{"title":".idea","children":[{"title":"libraries","children":[{"title":"Maven__com_fasterxml_classmate_1_4_0.xml <span style='color:#111;'>522B</span>","children":null,"spread":false},{"title":"Maven__ch_qos_logback_logback_core_1_2_3.xml <span style='color:#111;'>547B</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__junit_junit_4_12.xml <span style='color:#111;'>455B</span>","children":null,"spread":false},{"title":"Maven__org_springframework_boot_spring_boot_starter_logging_2_1_3_RELEASE.xml <span style='color:#111;'>748B</span>","children":null,"spread":false},{"title":"Maven__com_jayway_jsonpath_json_path_2_4_0.xml <span style='color:#111;'>546B</span>","children":null,"spread":false},{"title":"Maven__net_bytebuddy_byte_buddy_1_9_10.xml <span style='color:#111;'>536B</span>","children":null,"spread":false},{"title":"Maven__org_springframework_spring_core_5_1_5_RELEASE.xml <span style='color:#111;'>616B</span>","children":null,"spread":false},{"title":"Maven__javax_annotation_javax_annotation_api_1_3_2.xml <span style='color:#111;'>611B</span>","children":null,"spread":false},{"title":"Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_1_3_RELEASE.xml <span style='color:#111;'>769B</span>","children":null,"spread":false},{"title":"Maven__ch_qos_logback_logback_classic_1_2_3.xml <span style='color:#111;'>568B</span>","children":null,"spread":false},{"title":"Maven__org_springframework_spring_test_5_1_5_RELEASE.xml <span style='color:#111;'>616B</span>","children":null,"spread":false},{"title":"Maven__org_apache_logging_log4j_log4j_api_2_11_2.xml <span style='color:#111;'>573B</span>","children":null,"spread":false},{"title":"Maven__org_springframework_boot_spring_boot_2_1_3_RELEASE.xml <span style='color:#111;'>636B</span>","children":null,"spread":false},{"title":"Maven__net_bytebuddy_byte_buddy_agent_1_9_10.xml <span style='color:#111;'>578B</span>","children":null,"spread":false},{"title":"Maven__org_springframework_spring_expression_5_1_5_RELEASE.xml <span style='color:#111;'>658B</span>","children":null,"spread":false},{"title":"Maven__org_apache_tomcat_embed_tomcat_embed_core_9_0_16.xml <span style='color:#111;'>625B</span>","children":null,"spread":false},{"title":"Maven__com_fasterxml_jackson_core_jackson_databind_2_9_8.xml <span style='color:#111;'>623B</span>","children":null,"spread":false},{"title":"Maven__org_projectlombok_lombok_1_16_18.xml <span style='color:#111;'>531B</span>","children":null,"spread":false},{"title":"Maven__org_apache_logging_log4j_log4j_to_slf4j_2_11_2.xml <span style='color:#111;'>608B</span>","children":null,"spread":false},{"title":"Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_9_8.xml <span style='color:#111;'>729B</span>","children":null,"spread":false},{"title":"Maven__org_xmlunit_xmlunit_core_2_6_2.xml <span style='color:#111;'>535B</span>","children":null,"spread":false},{"title":"Maven__org_springframework_boot_spring_boot_test_2_1_3_RELEASE.xml <span style='color:#111;'>671B</span>","children":null,"spread":false},{"title":"Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml <span style='color:#111;'>700B</span>","children":null,"spread":false},{"title":"Maven__org_hamcrest_hamcrest_core_1_3.xml <span style='color:#111;'>532B</span>","children":null,"spread":false},{"title":"Maven__net_minidev_accessors_smart_1_2.xml <span style='color:#111;'>542B</span>","children":null,"spread":false},{"title":"Maven__io_swagger_swagger_annotations_1_5_20.xml <span style='color:#111;'>587B</span>","children":null,"spread":false},{"title":"Maven__org_ow2_asm_asm_5_0_4.xml <span style='color:#111;'>472B</span>","children":null,"spread":false},{"title":"Maven__com_fasterxml_jackson_core_jackson_annotations_2_9_0.xml <span style='color:#111;'>644B</span>","children":null,"spread":false},{"title":"Maven__org_springframework_spring_aop_5_1_5_RELEASE.xml <span style='color:#111;'>609B</span>","children":null,"spread":false},{"title":"Maven__org_springframework_boot_spring_boot_starter_test_2_1_3_RELEASE.xml <span style='color:#111;'>727B</span>","children":null,"spread":false},{"title":"Maven__org_hamcrest_hamcrest_library_1_3.xml <span style='color:#111;'>553B</span>","children":null,"spread":false},{"title":"Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_9_8.xml <span style='color:#111;'>688B</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_mockito_mockito_core_2_23_4.xml <span style='color:#111;'>542B</span>","children":null,"spread":false},{"title":"Maven__org_springframework_spring_webmvc_5_1_5_RELEASE.xml <span style='color:#111;'>630B</span>","children":null,"spread":false},{"title":"Maven__org_apache_tomcat_embed_tomcat_embed_websocket_9_0_16.xml <span style='color:#111;'>660B</span>","children":null,"spread":false},{"title":"Maven__org_apache_tomcat_embed_tomcat_embed_el_9_0_16.xml <span style='color:#111;'>611B</span>","children":null,"spread":false},{"title":"Maven__org_springframework_spring_beans_5_1_5_RELEASE.xml <span style='color:#111;'>623B</span>","children":null,"spread":false},{"title":"Maven__org_hibernate_validator_hibernate_validator_6_0_14_Final.xml <span style='color:#111;'>681B</span>","children":null,"spread":false},{"title":"Maven__org_springframework_boot_spring_boot_starter_json_2_1_3_RELEASE.xml <span style='color:#111;'>727B</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_springframework_boot_spring_boot_starter_tomcat_2_1_3_RELEASE.xml <span style='color:#111;'>741B</span>","children":null,"spread":false},{"title":"Maven__org_objenesis_objenesis_2_6.xml <span style='color:#111;'>508B</span>","children":null,"spread":false},{"title":"Maven__org_springframework_spring_jcl_5_1_5_RELEASE.xml <span style='color:#111;'>609B</span>","children":null,"spread":false},{"title":"Maven__org_skyscreamer_jsonassert_1_5_0.xml <span style='color:#111;'>537B</span>","children":null,"spread":false},{"title":"Maven__org_springframework_boot_spring_boot_starter_2_1_3_RELEASE.xml <span style='color:#111;'>692B</span>","children":null,"spread":false},{"title":"Maven__org_springframework_boot_spring_boot_starter_web_2_1_3_RELEASE.xml <span style='color:#111;'>720B</span>","children":null,"spread":false},{"title":"Maven__com_fasterxml_jackson_core_jackson_core_2_9_8.xml <span style='color:#111;'>595B</span>","children":null,"spread":false},{"title":"Maven__javax_validation_validation_api_2_0_1_Final.xml <span style='color:#111;'>611B</span>","children":null,"spread":false},{"title":"Maven__org_springframework_boot_spring_boot_autoconfigure_2_1_3_RELEASE.xml <span style='color:#111;'>734B</span>","children":null,"spread":false},{"title":"Maven__org_springframework_spring_web_5_1_5_RELEASE.xml <span style='color:#111;'>609B</span>","children":null,"spread":false},{"title":"Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_9_8.xml <span style='color:#111;'>674B</span>","children":null,"spread":false},{"title":"Maven__org_assertj_assertj_core_3_11_1.xml <span style='color:#111;'>542B</span>","children":null,"spread":false},{"title":"Maven__com_alibaba_fastjson_1_2_47.xml <span style='color:#111;'>514B</span>","children":null,"spread":false},{"title":"Maven__org_springframework_spring_context_5_1_5_RELEASE.xml <span style='color:#111;'>637B</span>","children":null,"spread":false},{"title":"Maven__net_minidev_json_smart_2_3.xml <span style='color:#111;'>507B</span>","children":null,"spread":false},{"title":"Maven__org_yaml_snakeyaml_1_23.xml <span style='color:#111;'>495B</span>","children":null,"spread":false}],"spread":false},{"title":"misc.xml <span style='color:#111;'>451B</span>","children":null,"spread":false},{"title":"compiler.xml <span style='color:#111;'>809B</span>","children":null,"spread":false},{"title":"uiDesigner.xml <span style='color:#111;'>8.71KB</span>","children":null,"spread":false},{"title":"workspace.xml <span style='color:#111;'>15.12KB</span>","children":null,"spread":false},{"title":"encodings.xml <span style='color:#111;'>209B</span>","children":null,"spread":false},{"title":"inspectionProfiles","children":[{"title":"Project_Default.xml <span style='color:#111;'>1.41KB</span>","children":null,"spread":false}],"spread":true},{"title":"modules.xml <span style='color:#111;'>259B</span>","children":null,"spread":false},{"title":"vcs.xml <span style='color:#111;'>188B</span>","children":null,"spread":false}],"spread":true},{"title":".mvn","children":[{"title":"wrapper","children":[{"title":"MavenWrapperDownloader.java <span style='color:#111;'>4.52KB</span>","children":null,"spread":false},{"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":"pom.xml <span style='color:#111;'>1.92KB</span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'>296B</span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

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