All New

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

Login


All New Login

All gists matching topic download

Recently created
Least recently created
Recently updated
Least recently updated

waynelone / 前端根据响应类型实现下载

0 likes
0 forks
4 files
Last active 5 months ago
前端根据 Content-Type 响应类型决定下载文件或提醒
cors download fetch
1 import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
2 import com.demo.common.reply.Result;
3 import io.swagger.v3.oas.annotations.Operation;
4 import io.swagger.v3.oas.annotations.Parameter;
5 import io.swagger.v3.oas.annotations.enums.ParameterIn;
6 import io.swagger.v3.oas.annotations.tags.Tag;
7 import org.springframework.core.io.ClassPathResource;
8 import org.springframework.core.io.Resource;
9 import org.springframework.http.HttpHeaders;
10 import org.springframework.http.ResponseEntity;
Newer Older

Powered by Opengist ⋅ Load: 32ms⋅

English
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文