I want to know if is possible to use Lombok
with Spring
, because in my project I got stack trace because I didn´t have a getter or setter method, but I put @getter
and @setter
annotations in my code.
@Data
public class EmailBean {
@Getter @Setter
private String contato;
@Getter @Setter
private String contatoCopia;
@Getter @Setter
private String copiaOculta;
@Getter @Setter
private String titulo;
@Getter @Setter
private String mensagem;
@Getter @Setter
private List<Contato> listaContatosSelecionados;
@Getter @Setter
private Set<String> setEmails;
@Getter @Setter
private boolean mostrar;
@Getter @Setter
private EmailHelper helper;
@Getter @Setter
private EmailFilter filter;
public boolean mostrarListener() {
this.mostrar = true;
return this.mostrar;
}
}
So anyone, can help me?
You probably need to override canEquals. See http://projectlombok.org/features/EqualsAndHashCode.html for more information.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With