public static SelectorDTO buildSelectorDTO(final String contextPath, final String pluginId) {
        SelectorDTO selectorDTO = buildDefaultSelectorDTO(contextPath);
        selectorDTO.setPluginId(pluginId);
        selectorDTO.setSelectorConditions(buildDefaultSelectorConditionDTO(contextPath));
        return selectorDTO;
    }
build selector.

@param contextPath context path
@param pluginId    plugin id
@return selector
shenyu-admin/src/main/java/org/apache/shenyu/admin/utils/SelectorUtil.java