public static String getApplicationName(HttpServletRequest request) {
String appName = "root";
if (request.getContextPath().length() > 1) {
appName = request.getContextPath().substring(1);
}
return appName;
}
request.getContextPath()
最新推荐文章于 2024-06-29 12:43:15 发布