JavaWeb使用response下载文件
最主要的就是写doGet方法了,先上代码。
关于<code>Content-Disposition</code> 的介绍:
传送门
一个小问题,转到
/
d
o
w
n
/down
/down 界面后提出
r
e
s
q
u
t
resquest
resquest后会自动下载,而不会弹出提示框是否保存,待解决。
JavaWeb使用response下载文件
最主要的就是写doGet方法了,先上代码。
关于<code>Content-Disposition</code> 的介绍:
传送门
一个小问题,转到
/
d
o
w
n
/down
/down 界面后提出
r
e
s
q
u
t
resquest
resquest后会自动下载,而不会弹出提示框是否保存,待解决。