UsernamePasswordAuthenticationFilter
상속attemptAuthentication()
, successfulAuthentication()
함수 구현AuthenticationFilter
를 거치도록 수정UserService.java
활용user-service : vo.RequestLogin
@Data
public class RequestLogin {
@NotNull(message = "Email cannot be null")
@Size(min = 2,message = "Email not be less than two characters")
@Email
private String email;
@NotNull(message = "Password cannot be null")
@Size(min = 2,message = "Password must be equals or greater than 8 characters")
private String password;
}