jeudi 29 novembre 2018

java reflection get specific declared field value as String

I am having a declared field in RequestDto as (requestDto has many declared field but i want only this custom field)

private String custom; 

i wanted to get this declared field name Custom as String

like String name-"custom"(but custom has to be dynamic)





Aucun commentaire:

Enregistrer un commentaire