I have a Json Array in my request object and POJO object, I need to save that jsonarray field into jsonb column in my postgresql table.
"productId": "1",
"product":[
{
"name": "PENCIL",
"quantity":"5"
}]
I am getting an exception when trying to hit it via postman, getting exception:
Type definition error: [simple type, class io.r2dbc.postgresql.codec.Json]; nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of io.r2dbc.postgresql.codec.Json
(no Creators, like default constructor, exist): abstract types either need to be mapped to concrete types, have custom deserializer, or contain additional type information\n at [Source: (io.netty.buffer.ByteBufInputStream); l