技术博客 技术博客
  • JAVA
  • 仓颉
  • 设计模式
  • 人工智能
  • Spring
  • Mybatis
  • Maven
  • Git
  • Kafka
  • RabbitMQ
  • RocketMQ
  • Redis
  • Zookeeper
  • Nginx
  • 数据库套件
  • MySQL
  • Elasticsearch
  • MongoDB
  • Hadoop
  • ClickHouse
  • Hbase
  • Hive
  • Flink
  • Flume
  • SQLite
  • linux
  • Docker
  • Jenkins
  • Kubernetes
  • 工具
  • 前端
  • AI
GitHub (opens new window)
  • JAVA
  • 仓颉
  • 设计模式
  • 人工智能
  • Spring
  • Mybatis
  • Maven
  • Git
  • Kafka
  • RabbitMQ
  • RocketMQ
  • Redis
  • Zookeeper
  • Nginx
  • 数据库套件
  • MySQL
  • Elasticsearch
  • MongoDB
  • Hadoop
  • ClickHouse
  • Hbase
  • Hive
  • Flink
  • Flume
  • SQLite
  • linux
  • Docker
  • Jenkins
  • Kubernetes
  • 工具
  • 前端
  • AI
GitHub (opens new window)
  • 工具

    • vscode ide 配置
    • cursor AI
  • 前端

    • VUE3知识点
      • 批量上传
    • Echarts 优化
  • AI

    • AI 基础知识
目录

VUE3知识点

# 批量上传

@PostMapping("/uploadStrategyBatch")
public Rep<List<String>> uploadStrategyBatch(@RequestParam("file") MultipartFile[] file, @RequestParam("path") String path, HttpServletRequest httpServletRequest ) throws IOException, BasicException {
     return Rep.ok(fileService.uploadStrategyBatch(file, path, httpServletRequest));
}
1
2
3
4

最主要的就是把文件往这个 file 里面塞,你觉得这样会覆盖?其实并不会,这就是批量上传。

let fd = new FormData();
for (let i = 0; i < files.length; i++) {
    fd.append('file', files[i])
}
1
2
3
4
上次更新: 6/11/2025, 4:10:30 PM
cursor AI
Echarts 优化

← cursor AI Echarts 优化→

Theme by Vdoing | Copyright © 2023-2025
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式