Java & Spring
![[JWT] Postman Post /v11/auth/login 출력문제](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FcjW31c%2FbtrNcya63vp%2FAAAAAAAAAAAAAAAAAAAAAMhSqBlA9KXLJnDtt3pP8JmIc1fBY37WJgmsrtAnd-1O%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1761922799%26allow_ip%3D%26allow_referer%3D%26signature%3DbPq2YVZwgfTQKeb%252FEfIf3flac34%253D)
[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)](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2Fyokze%2FbtrM4QK1pf8%2FAAAAAAAAAAAAAAAAAAAAAEX4r5wLSaXV77_jmPcOaUbJ24eDoz4-_Uk6ltoGGvZO%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1761922799%26allow_ip%3D%26allow_referer%3D%26signature%3DEkgZOkKtPHG6vfGAPrSpOAxji8I%253D)
[Spring] Whitelable Error Page (404)
문제 프로젝트를 실행하고, http://localhost:8080/ 에 접속했으나, 다음과 같은 에러가 발생 원인 기본적으로 Controller같은 엔드포인트가 없어서 발생하는 에러 혹은, 엔드포인트가 제대로 연동되어있지 않아 발생 * 즉, Spring Security 기반의 기본적인 프로젝트 설정은 정상적으로 완료가 되어있는 상태다 해결방법 1. Controller같은 엔드포인트를 작성하자 2. 만약, 엔드포인트를 작성한 상태라면, 애너테이션 등 빠진 부분이 있는지 점검하자
![[JWT] The specified key byte array is 232 bits which is not secure enough for any JWT HMAC-SHA algorithm...](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FbCZe0a%2Fbtr2xSTifhh%2FAAAAAAAAAAAAAAAAAAAAAHZWGg3ba_5mHMbhn0PQAN0W8ZkCyDBm67WVDRZRh5Je%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1761922799%26allow_ip%3D%26allow_referer%3D%26signature%3DD9EDCd7cSBBjjU3qZfgRkJRKaNQ%253D)
[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..