我想知道是否可以使用Lombok
with Spring
,因为在我的项目中我得到了堆栈跟踪,因为我没有 getter 或 setter 方法,但我在代码@getter
中添加@setter
了注释。
@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;
}
}
那么任何人都可以帮助我吗?