add(req-2080):加日志,查看linux服务器中的类文件路径

This commit is contained in:
胡朝飞 2024-01-22 14:23:18 +08:00
parent df0b9a96ab
commit 16f363957a

View File

@ -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);