Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package pojo;
- import com.fasterxml.jackson.annotation.JsonProperty;
- public class Credentials {
- @JsonProperty("username") //annotation user to update variable name to case required by server
- public String userName; // must be public
- public String password;
- public Credentials(String userName, String password) {
- this.userName = userName;
- this.password = password;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement