idea项目中保存文件

如果你使用的是你自己下载的tomcat,那么无论做什么都无法把上传的文件保存在项目中。 String classPath = this.getClass().getClassLoader().getResource("/").getPath(); String path=request.getSession().getServletContext().getRealPath("/upload/")
相关文章
相关标签/搜索