类 TaskflowAutoConfiguration
- java.lang.Object
-
- cn.feiliu.taskflow.serialization.TaskflowAutoConfiguration
-
- 所有已实现的接口:
org.springframework.beans.factory.InitializingBean
@ConditionalOnClass(org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration.class) public class TaskflowAutoConfiguration extends Object implements org.springframework.beans.factory.InitializingBean
- 从以下版本开始:
- 2024-09-01
- 作者:
- SHOUSHEN.LUAN
-
-
构造器概要
构造器 构造器 说明 TaskflowAutoConfiguration()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidafterPropertiesSet()JsonProtoModulejsonProtoModule()JsonProtoModule can be registered into anObjectMapperto enable the serialization and deserialization of ProtoBuf objects from/to JSON.
-
-
-
方法详细资料
-
jsonProtoModule
@Bean("TaskflowJsonProtoModule") public JsonProtoModule jsonProtoModule()JsonProtoModule can be registered into anObjectMapperto enable the serialization and deserialization of ProtoBuf objects from/to JSON.Right now this module only provides (de)serialization for the
AnyProtoBuf type, as this is the only ProtoBuf object which we're currently exposing through the REST API.Annotated as
Componentso Spring can register it withObjectMapper- 另请参阅:
JsonProtoModule.AnySerializer,JsonProtoModule.AnyDeserializer,JacksonAutoConfiguration
-
-