public static String pathJoin(@NonNull final String... path) {

        StringBuilder result = new StringBuilder(Constants.PATH_SEPARATOR);

        for (String p : path) {
            if (!result.toString().endsWith(Constants.PATH_SEPARATOR)) {
                result.append(Constants.PATH_SEPARATOR);
            }
            result.append(p.startsWith(Constants.PATH_SEPARATOR) ? p.replaceFirst(Constants.PATH_SEPARATOR, "") : p);
        }
        return result.toString();
    }
Joint paths.
@param path paths
@return path
shenyu-common/src/main/java/org/apache/shenyu/common/utils/PathUtils.java