It`s possible to create one JsonSerialize and Deserialize with spring boot?
I put in my appliation.properties this line
spring.jackson.date-format=dd/MM/yyyy HH:mm:ss
but when I return one Date he allways returns a wrong value (yyyy-MM-dd) so I try to create one custom serialization following the http://docs.spring.io/spring-boot/docs/1.4.0.RELEASE/reference/htmlsingle/#boot-features-json-components but don`t work.
this is my return:
@Entity
@Table(name = "view_atos_praticados", catalog="db_registro", schema="db_wsprefeituraatos")
public class ViewAtosPraticados {
@JsonIgnore
@Id
@Column(name="id")
private Integer id;
@Column(name="descricao_ato")
private String ato;
@JsonIgnore
@Column(name="livro")
private String livro;
@JsonIgnore
@Column(name="numero_ato")
private Integer nrAto;
@JsonIgnore
@Column(name="numero_registro")
private String nrRegistro;
@Column(name="dat_registro")
private Date registro;
@Column(name="ic_transmissao")
private String transmite;