private boolean checkFile(final byte[] file) {
        try {
            // Check if the file size is greater than 16 megabytes
            if (file.length > 16 * Constants.BYTES_PER_MB) {
                LogUtils.warn(LOG, "File size is {}MB larger than 16MB", file.length / Constants.BYTES_PER_MB);
                return false;
            }
            Set<String> dependencyTree = JarDependencyUtils.getDependencyTree(file);
            return dependencyTree.contains(AdminConstants.PLUGIN_ABSTRACT_PATH)
                    || dependencyTree.contains(AdminConstants.PLUGIN_INTERFACE_PATH)
                    || dependencyTree.contains(AdminConstants.LOGGING_PLUGIN_ABSTRACT_PATH);
        } catch (Exception e) {
            LogUtils.error(LOG, "check plugin jar error:{}", e.getMessage());
            throw new ShenyuException(e);
        }
    }
check jar.

@param file jar file
@return true is right
shenyu-admin/src/main/java/org/apache/shenyu/admin/service/impl/PluginServiceImpl.java