两种方式得部署方式是不一样的,在获取项目的路径的时候得到的结果是不一样的
String contextPath = request.getSession().getServletContext().getRealPath("/");
war和war exploded的区别
原文:https://www.cnblogs.com/weibanggang/p/9692754.html