package com.rft.dto;

import javax.validation.constraints.NotNull;

public class LoginDto {
	
	@NotNull
	private String username;
	@NotNull
	private String password;
	
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	
	
	
}

package com.rft.dto;

import javax.validation.constraints.NotNull;

public class LoginDto {
	
	@NotNull
	private String username;
	@NotNull
	private String password;
	
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
		
		
		
		
		
		
	}
	
	
	
}

Update LoginDto.java