Fix sample-01 README

Now using the more efficient byte array.
This commit is contained in:
Gary Russell
2022-02-25 11:57:03 -05:00
parent 01549a6ef9
commit cc912425d0

View File

@@ -2,7 +2,7 @@
This sample demonstrates a simple producer and consumer; the producer sends objects of type `Foo1` and the consumer receives objects of type `Foo2` (the objects have the same field, `foo`).
The producer uses a `JsonSerializer`; the consumer uses the `StringDeserializer` that is automatically configured by Spring Boot, together with a `StringJsonMessageConverter` which converts to the type of the listener method argument.
The producer uses a `JsonSerializer`; the consumer uses the `ByteArrayDeserializer` that is automatically configured by Spring Boot, together with a `JsonMessageConverter` which converts to the type of the listener method argument.
Run the application and use curl to send some data: