Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

[12:46:32 CST(-0600)] <TonyUnicon> is it by convention? is it always the field name?

[12:59:39 CST(-0600)] <dmccallum54> the API controllers are all tagged with @ResponseBody, which means the serialization will be handled by a HttpMessageConverter selected by Spring

[12:59:55 CST(-0600)] <dmccallum54> in our case it's almost always going to select MappingJacksonHttpMessageConverter

[13:00:06 CST(-0600)] <dmccallum54> so serialization will be whatever you get with Jackson by default

[13:00:27 CST(-0600)] <dmccallum54> easiest way to modify that behavior on a fine-grained basis would be to add Jackson annotations to the TOs in question