|
@@ -1,28 +1,28 @@
|
|
|
-package cn.com.qmth.examcloud.web.support;
|
|
|
-
|
|
|
-import cn.com.qmth.examcloud.commons.util.PathUtil;
|
|
|
-
|
|
|
-/**
|
|
|
- * classpath 定位
|
|
|
- *
|
|
|
- * @author WANGWEI
|
|
|
- * @date 2019年11月8日
|
|
|
- * @Copyright (c) 2018-? WANGWEI [QQ:522080330] All Rights Reserved.
|
|
|
- */
|
|
|
-public class ClasspathHelper {
|
|
|
-
|
|
|
- private static final String LOCATION_FILE = "classpath.location";
|
|
|
-
|
|
|
- /**
|
|
|
- * 获取classpath
|
|
|
- *
|
|
|
- * @author WANGWEI
|
|
|
- * @return
|
|
|
- */
|
|
|
- public static String getClasspath() {
|
|
|
- String location = PathUtil.getResoucePath(LOCATION_FILE);
|
|
|
- String classPath = location.substring(0, location.lastIndexOf(LOCATION_FILE));
|
|
|
- return classPath;
|
|
|
- }
|
|
|
-
|
|
|
-}
|
|
|
+// package cn.com.qmth.examcloud.web.support;
|
|
|
+//
|
|
|
+// import cn.com.qmth.examcloud.commons.util.PathUtil;
|
|
|
+//
|
|
|
+// /**
|
|
|
+// * classpath 定位
|
|
|
+// *
|
|
|
+// * @author WANGWEI
|
|
|
+// * @date 2019年11月8日
|
|
|
+// * @Copyright (c) 2018-? WANGWEI [QQ:522080330] All Rights Reserved.
|
|
|
+// */
|
|
|
+// public class ClasspathHelper {
|
|
|
+//
|
|
|
+// private static final String LOCATION_FILE = "classpath.location";
|
|
|
+//
|
|
|
+// /**
|
|
|
+// * 获取classpath
|
|
|
+// *
|
|
|
+// * @author WANGWEI
|
|
|
+// * @return
|
|
|
+// */
|
|
|
+// public static String getClasspath() {
|
|
|
+// String location = PathUtil.getResoucePath(LOCATION_FILE);
|
|
|
+// String classPath = location.substring(0, location.lastIndexOf(LOCATION_FILE));
|
|
|
+// return classPath;
|
|
|
+// }
|
|
|
+//
|
|
|
+// }
|