代码拉取完成,页面将自动刷新
org.smart4j.framework.util.WebUtil
优化建议182行 - 186行:
public static String getRequestPath(HttpServletRequest request) {
String servletPath = request.getServletPath();
String pathInfo = StringUtil.defaultIfEmpty(request.getPathInfo(), "");
return servletPath + pathInfo;
}
优化为:
public static String getRequestPath(HttpServletRequest request) {
String servletPath = request.getServletPath();
String pathInfo = StringUtil.defaultIfEmpty(request.getPathInfo(),StringUtils.EMPTY);
return servletPath + pathInfo;
}