spring web项目与springboot项目使用request.getSession().getServletContext().getRealPath(““)
spring web项目与springboot项目使用request.getSession().getServletContext().getRealPath("")
之前在spring web项目中进行文件上传和下载时,使用getSession().getServletContext().getRealPath("")作为基础路径进行文件的存储和访问,功能可以正常实现。但是,在springboot项目中实现文件上传和下载,同样使用getSession().getServletContext().getRe
原创
2022-10-12 09:53:59 ·
1012 阅读 ·
0 评论