大家好,又见面了,我是全栈君。
public static String DEPLOY_PATH = null;
static
{
String CurrentClassFilePath = Constant.class.getResource("").getPath();
int lastpath = CurrentClassFilePath.lastIndexOf("WEB-INF/");
DEPLOY_PATH = CurrentClassFilePath.substring(0, lastpath);
}
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/116001.html原文链接:https://javaforall.net
