本地文件下载(上传),可启动服务代替SCP命令共享文件
新建spring-boot项目
pom.xml
4.0.0
org.springframework.boot
spring-boot-starter-parent
2.2.5.RELEASE
me.muphy
download
0.0.1-SNAPSHOT
download
Demo project for Spring Boot
1.8
org.springframework.boot
spring-boot-starter-web
org.springframework.boot
spring-boot-starter-test
test
org.junit.vintage
junit-vintage-engine
org.springframework.boot
spring-boot-maven-plugin
application.properties
server.port=8088#文件下载
#download.file.default=20200428.xls
download.path=E:/workspace/download/
DownloadApplication.java
packageme.muphy;importorg.springframework.boot.SpringApplication;importorg.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplicationpublic classDownloadApplication {public static void main(String[] args) throwsInterruptedException {
SpringApplication.run(DownloadApplication.class, args);
}
}
Index.html
莫非录音机