/spring-response-body-advice-sample

Example of Spring ResponseBodyAdvice

Primary LanguageJava

ResponseBodyAdvice sample

Example of how to manage complex query params

This example show you how to filter attribute(s) of object out before controller send response it out using ResponseBodyAdvice and annotation.

The classes that you should have a look are

  • RestFilter
  • RestFilterAdvice
  • RoomController
  • RoomServiceApplication

else are just standard class