@SuppressWarnings("rawtypes")
    @SafeVarargs
    static void configEnumAsJavaBean(Class<? extends Enum>... enumClasses) {
        JSONFactory.getDefaultObjectWriterProvider().configEnumAsJavaBean(enumClasses);
    }
Configure the Enum classes as a JavaBean
@since 2.0.55
@param enumClasses enum classes
core/src/main/java/com/alibaba/fastjson2/JSON.java