文件路径修改
在controller中的路径
String store_path = request.getSession().getServletContext().getRealPath("/images/upfilesForBS/user/headImg/");
对应的文件路径
在jsp中获取该路径
src="${pageContext.request.contextPath}/images/upfilesForBS/user/headImg/${sessionScope.user.headImg}
${pageContext.request.contextPath}得到的是 web的路径 /web