@SuppressWarnings("rawtypes")
    @SafeVarargs
    public final void configEnumAsJavaBean(Class<? extends Enum>... enumClasses) {
        for (Class<? extends Enum> enumClass : enumClasses) {
            register(enumClass, getCreator().createObjectWriter(enumClass));
        }
    }
Configure the Enum classes as a JavaBean
@since 2.0.55
@param enumClasses enum classes
core/src/main/java/com/alibaba/fastjson2/writer/ObjectWriterProvider.java