How to assign default value to a field when the field provided in json is null or empty using annotations?
I am facing Nullpointer exception while trying to send a empty field. Need annotation approach. If else approach not required I tried if else approach and it worked. But needed annotation approach to resolve the same.