Firefly Pointer 'Java & Spring' 카테고리의 글 목록 (19 Page) — 궁금하신 점이 있다면 댓글로 남겨주세요.(2023년~ 노션으로 이동)

Java & Spring

    [JWT] Postman Post /v11/auth/login 출력문제

    [JWT] Postman Post /v11/auth/login 출력문제

    문제 SpringSecurity를 이용한 JWT인증 애플리케이션 작성 후, Postman을 이용해 로그인 인증 요청을 보낼 때 올바른 요청이 오지 않는다. (이미지 참고) 아래 이미지와 같이 회원 등록(회원가입)은 정상적으로 작동한다 이후, 등록한 회원정보로 로그인을 실행할때, 올바른 response가 오지 않는다. 원인 1. 오탈자 2. 구현 클래스 내 구현 메서드에 @Override 애너테이션을 빼먹은 상황 해결방법 및 올바른 출력결과 UsernamePasswordAuthenticationFilter 클래스의 구현 클래스인 JwtAuthenticationFilter 클래스를 다시 한 번 확인 특히, Postman상으로 나오도록 설정해둔 값이 있는 successfulAuthentication 메서드를 ..

    [finished with non-zero exit value 1] a bean of type 'org.springframework.security.crypto.password.PasswordEncoder' that could not be found.

    에러코드 Description: Parameter 2 of constructor in .... MemberService required a bean of type 'org.springframework.security.crypto.password. PasswordEncoder' that could not be found. Action: Consider defining a bean of type 'org.springframework.security.crypto.password.PasswordEncoder' in your configuration. Process 'command 'C:/Users/nyong/.jdks/azul-17.0.4.1/bin/java.exe'' finished with non-zero ..

    [Spring] Whitelable Error Page (404)

    [Spring] Whitelable Error Page (404)

    문제 프로젝트를 실행하고, http://localhost:8080/ 에 접속했으나, 다음과 같은 에러가 발생 원인 기본적으로 Controller같은 엔드포인트가 없어서 발생하는 에러 혹은, 엔드포인트가 제대로 연동되어있지 않아 발생 * 즉, Spring Security 기반의 기본적인 프로젝트 설정은 정상적으로 완료가 되어있는 상태다 해결방법 1. Controller같은 엔드포인트를 작성하자 2. 만약, 엔드포인트를 작성한 상태라면, 애너테이션 등 빠진 부분이 있는지 점검하자

    [JWT] JJWT

    보호되어 있는 글입니다.

    [JWT] The specified key byte array is 232 bits which is not secure enough for any JWT HMAC-SHA algorithm...

    [JWT] The specified key byte array is 232 bits which is not secure enough for any JWT HMAC-SHA algorithm...

    에러코드 The specified key byte array is 232 bits which is not secure enough for any JWT HMAC-SHA algorithm. The JWT JWA Specification (RFC 7518, Section 3.2) states that keys used with HMAC-SHA algorithms MUST have a size >= 256 bits (the key size must be greater than or equal to the hash output size). Consider using the io.jsonwebtoken.security.Keys#secretKeyFor(SignatureAlgorithm) method to creat..