Open lebronjamesuit opened 1 year ago
ObjectMapper also expects an accessible default constructor, that is, one that takes no parameters.
Be careful when work with Lombox, Jackson needs two things to work deserialization.
@Data
@AllArgsConstructor. // Optional
@NoArgsConstructor
public class RequestLoginDTO {
private String username;
private String password;
}
o.s.web.method.HandlerMethod : Could not resolve parameter [0] in public com.social.media.confessionmedia.authorizationserver.controller.AuthenticationController.logIn(RequestLoginDTO) throws java.lang.Exception: Type definition error: [simple type, class RequestLoginDTO]