* This adds the ability to make Jackson serializers not output the class name in the manifest in cases where type information is stored in a more concise format in the JSON itself. * documentation about rolling updates * Ensure programatic bindings are search in Jackson serializer
This commit is contained in:
parent
89165badbb
commit
eb64d05b8c
5 changed files with 202 additions and 16 deletions
|
|
@ -101,6 +101,31 @@ object SerializationDocSpec {
|
|||
#//#several-config
|
||||
"""
|
||||
|
||||
val configManifestless = """
|
||||
#//#manifestless
|
||||
akka.actor {
|
||||
serializers {
|
||||
jackson-json-event = "akka.serialization.jackson.JacksonJsonSerializer"
|
||||
}
|
||||
serialization-identifiers {
|
||||
jackson-json-event = 9001
|
||||
}
|
||||
serialization-bindings {
|
||||
"com.myservice.MyEvent" = jackson-json-event
|
||||
}
|
||||
}
|
||||
akka.serialization.jackson {
|
||||
jackson-json-event {
|
||||
type-in-manifest = off
|
||||
# Since there is exactly one serialization binding declared for this
|
||||
# serializer above, this is optional, but if there were none or many,
|
||||
# this would be mandatory.
|
||||
deserialization-type = "com.myservice.MyEvent"
|
||||
}
|
||||
}
|
||||
#//#manifestless
|
||||
"""
|
||||
|
||||
//#polymorphism
|
||||
final case class Zoo(primaryAttraction: Animal) extends MySerializable
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue