类 TaskflowAutoConfiguration


  • public class TaskflowAutoConfiguration
    extends Object
    从以下版本开始:
    2024-09-01
    作者:
    SHOUSHEN.LUAN
    • 构造器详细资料

      • TaskflowAutoConfiguration

        public TaskflowAutoConfiguration()
    • 方法详细资料

      • jsonProtoModule

        @Conditional(cn.feiliu.taskflow.serialization.TaskflowAutoConfiguration.SpringCondition.class)
        @Bean("TaskflowJsonProtoModule")
        public JsonProtoModule jsonProtoModule()
        JsonProtoModule can be registered into an ObjectMapper to enable the serialization and deserialization of ProtoBuf objects from/to JSON.

        Right now this module only provides (de)serialization for the Any ProtoBuf type, as this is the only ProtoBuf object which we're currently exposing through the REST API.

        Annotated as Component so Spring can register it with ObjectMapper

        另请参阅:
        JsonProtoModule.AnySerializer, JsonProtoModule.AnyDeserializer, org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration