my pojo public class VerifyLoginRespDto {
private String access_token;//NOSONAR
private String refresh_token;//NOSONAR
private String edit_by_user;//NOSONAR
private String scope;//NOSONAR
private String token_type;//NOSONAR
private String expires_in;//NOSONAR
}
the controller file
@RequestMapping(value = "/login", method = RequestMethod.POST)
VerifyLoginRespDto verifyLogin(@RequestBody @Valid VerifyLoginDto verifyLogin) {
// some code
}
but my response have camel key like this
{
"scope": "basic,",
"refreshToken": "c2a4f22b-6446-49ad-8cc9-ef1a844d6cbb",
"tokenType": "bearer",
"expiresIn": "2591892",
"accessToken": "54b3f27b-ad5c-4d7b-ae5d-07f56f5f2f42",
"editByUser": "0"
}
why the key access_token change to accessToken in Spring boot?