Spring Core

Exercise: Chat Application (Custom Message)

  1. Define a ChatMessage class with a user and a text property.
  2. Implement a message converter that automatically converts chat messages from and to CSV.
  3. Configure the JacksonJsonMessageConverter with the typeId property set to chat such that chat messages are converted from and to JSON.

Solution