Örnek
Şöyle yaparız
@Bean
public JsonItemReader<PhishtankPhishDetails> phishtankReader() {
return new JsonItemReaderBuilder<PhishtankPhishDetails>()
.jsonObjectReader(new JacksonJsonObjectReader<>(PhishtankPhishDetails.class))
.resource(phishtankLinksClassPathResource)
.name("phishDetailsJsonItemReader")
.build();
}
Hiç yorum yok:
Yorum Gönder