add(req-2080):加日志,查看linux服务器中的类文件路径
This commit is contained in:
parent
df0b9a96ab
commit
16f363957a
@ -645,6 +645,7 @@ public class FileServiceImpl implements FileService {
|
||||
|
||||
ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();
|
||||
String classPath = contextClassLoader.getResource("").getPath();
|
||||
log.info("linux服务器下的类文件路径:{}", classPath);
|
||||
String projectPath = classPath.substring(0, classPath.indexOf("/target/classes/"));
|
||||
log.info("linux服务器下的项目路径:{}", projectPath);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user