Spring Applications

Exercise: Chat Application (Advanced Messaging)




  1. Add the starter spring-boot-starter-json as dependency to the application.
  2. Define a ChatMessage class with a user and a text property.
  3. Configure the MappingJackson2MessageConverter such that the chat messages are converted from and to JSON.

Solution