Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2015
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. spring.jackson.deserialization.UNWRAP_ROOT_VALUE=true
  2.  
  3. @Configuration
  4. public class JacksonConfig {
  5.  
  6. @Bean
  7. public Jackson2ObjectMapperBuilder jacksonBuilder() {
  8. Jackson2ObjectMapperBuilder builder = new Jackson2ObjectMapperBuilder();
  9. builder.featuresToEnable(DeserializationFeature.UNWRAP_ROOT_VALUE);
  10. builder.indentOutput(true).dateFormat(new SimpleDateFormat("dd/MM/yyyy HH:mm:ss"));
  11. builder.indentOutput(true);
  12. return builder;
  13. }
  14.  
  15. }
  16.  
  17. @JsonRootName("contato")
  18. public class TbContato extends EntityBase {
  19.  
  20. {
  21. "cdContato": 12,
  22. "dtContato": "03/08/2015 16:04:43",
  23. "cdUsuario": null,
  24. "nmParte": "Fabio Ebner",
  25. "nmEmailParte": "fabioebner@gmail.com",
  26. "nmAssunto": "Assuntttoooo",
  27. "dsMensagem": "mensagem nessa porra aqui",
  28. "dtResposta": null,
  29. "dsResposta": null,
  30. "cdUsuarioResposta": null,
  31. "nmUsuarioResposta": null
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement