I'm using jackson 2.9.6 embedded in spring-boot 2.0.5 and I try to access a
restfull endpoint and when I send a json with @class value, jackson can
deserialize my json
{
"@class": "br.com.adtsys.ciee.auth.user.data.request.LoginRequest",
"username": "000001",
"password": "adminciee2017"
}
if a remove @class property and value
{
"username": "000001",
"password": "adminciee2017"
}
jackson can't deserialize my JSON and throws a InvalidTypeIdException, I
have been working with jackson for years and never I saw like thaht before.
my java obejct is a simple pojo
public class Login {
private String username;
private String password;
}
I'm using lombok too.
Someone knows what's happens and why?
--
You received this message because you are subscribed to the Google Groups
"jackson-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.