效果图
初始化
文件上传
文件预览
文件下载
新标签页打开
当前页面打开
后端目录
pom.xml
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
前端目录
源码
https://github.com/ycsyxt/file-upload-downloan