The problem of the classpath of the introduced jar package

I have a module that is common-api

There is a GlobalConfig class in the

module that gets classpath

    Class<GlobalConfig> clazz = GlobalConfig.class;
    String classPath = clazz.getResource("/").getPath();
    System.out.println(classPath);
    

when this module is packaged as a jar package and referenced by other modules
this classPath belongs to other modules, not the common-api "s own
how to get its own classPath? in this case

Mar.28,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e5fa52-45854.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e5fa52-45854.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?