com.fasterxml.jackson.databind.DeserializationContext.reportBadDefinition

i used totalreturnsdto as the pojo class and i am getting the below mentioned errors

i checked and added the command mapper.registerModule(new JavaTimeModule()); below my mapper still no use

You have to use PortfolioTrade as your POJO class
Thats why you are getting deserilazation error as it is mapping with wrong POJO.

thanks bro i think i got it