괴발개발/Spring Framework

Encoded password does not look like BCrypt 에러

moonday 2021. 8. 11. 16:17

- 비밀번호 암호화를 하다보면 이런 에러를 볼 수 있음. 콘솔창에 하얀색으로 뜸

 

root-context파일에 추가 및 수정을 하면 안뜸

<!-- 비밀번호 암호화 -->
<bean id="bcryptPasswordEncoder" class="org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder" />  

 

xsi:schemaLocation="
http://www.springframework.org/schema/jdbc
http://www.springframework.org/schema/jdbc/spring-jdbc-4.3.xsd
xmlns:security="http://www.springframework.org/schema/security" xsi:schemaLocation="http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-4.1.xsd http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-4.3.xsd

빨강대신에 파란색으로 바꿔주기

 

그리고 실행하면 안뜸 

 

'괴발개발 > Spring Framework' 카테고리의 다른 글

404에러페이지 처리  (0) 2021.08.20
SP_자동로그인 기능구현  (0) 2021.08.16
에이젝스 $.ajax  (0) 2021.08.11
passwordEncoder.matches(암호화안된비번, 암호화된비번);  (0) 2021.08.11
@Data, get~, set~  (0) 2021.08.11