Java & Spring/Error
[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%3D1756652399%26allow_ip%3D%26allow_referer%3D%26signature%3DA9DDObkPPDfvt%252BnpNlX6q32zuxM%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%3D1756652399%26allow_ip%3D%26allow_referer%3D%26signature%3D1nwAtrKaWxTlX4HwlHJhzVm0mqY%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..
[SpringSecurity] java.lang.IllegalArgumentException: There is no PasswordEncoder mapped for the id "null” 에러
에러코드 java.lang.IllegalArgumentException: There is no PasswordEncoder mapped for the id "null” 원인 패스워드를 암호화 하지 않고 User를 등록한다면 User 등록은 되지만 로그인 인증 시, 에러발생 해결방법 User의 패스워드는 반드시 암호화 하기