//获取requert
HttpServletRequest request = ((ServletRequestAttributes)RequestContextHolder.getRequestAttributes()).getRequest();
String defaultimg = request.getSession().getServletContext().getRealPath("/") +"static"+File.separator+"img"+File.separator+"defaultimg.jpg";

posted on 2016-06-15 15:37  孙英凯  阅读(708)  评论(0编辑  收藏  举报