표준 프레임워크 4.0 EgovPasswordEncoder convert to org.springframework.security.crypto.password.PasswordEncoder 실패
- 작성자 :
- 김*열
- 작성일 :
- 2023-07-10 13:41:52
- 조회수 :
- 727
- 구분 :
- 개발환경 / 4.0
- 진행상태 :
- 완료
Q
기존 3.1로 개발한 솔루션을 4.0으로 마이그레이션중에 있습니다.
하지만 솔루션 실행 시 이런 오류가 나오네요 어떤 부분을 확인해야 할지 알려주시면 감사하겠습니다
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.authentication.dao.DaoAuthenticationProvider#0': Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'org.egovframe.rte.fdl.cryptography.EgovPasswordEncoder' to required type 'org.springframework.security.crypto.password.PasswordEncoder' for property 'passwordEncoder'; nested exception is java.lang.IllegalStateException: Cannot convert value of type 'org.egovframe.rte.fdl.cryptography.EgovPasswordEncoder' to required type 'org.springframework.security.crypto.password.PasswordEncoder' for property 'passwordEncoder': no matching editors or conversion strategy found
자세한 로그는 첨부파일에 첨부하겠습니다.
하지만 솔루션 실행 시 이런 오류가 나오네요 어떤 부분을 확인해야 할지 알려주시면 감사하겠습니다
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.authentication.dao.DaoAuthenticationProvider#0': Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'org.egovframe.rte.fdl.cryptography.EgovPasswordEncoder' to required type 'org.springframework.security.crypto.password.PasswordEncoder' for property 'passwordEncoder'; nested exception is java.lang.IllegalStateException: Cannot convert value of type 'org.egovframe.rte.fdl.cryptography.EgovPasswordEncoder' to required type 'org.springframework.security.crypto.password.PasswordEncoder' for property 'passwordEncoder': no matching editors or conversion strategy found
자세한 로그는 첨부파일에 첨부하겠습니다.
환경정보
-
- OS 정보 : windows11
- 표준프레임워크 버전 : 4.0
- JDK(JRE) 정보 : 11
- WAS 정보 : tomcat9
- DB 정보 : mariadb
- 기타 환경 정보 :
A
안녕하세요.
표준프레임워크센터입니다.
[no matching editors or conversion strategy found] 메시지는
특정 클래스를 대입하는데 해당 클래스로 변경할 수 없을 때 보여지는 메시지로
표준프레임워크 EgovPasswordEncoder 클래스를 Bean으로 등록할 때 사용한 아이디가
Spring Security의 PasswordEncoder 클래스명과 동일하여
주입받는 EgovARIACryptoServiceImpl 클래스에서 문제가 발생하는 것 같으므로
표준프레임워크 EgovPasswordEncoder 클래스의 Bean 아이디를
다른 이름으로 변경해 보시기 바랍니다.
또한, 실행환경 업그레이드 가이드는 다음과 같으니 참고하시길 바랍니다.
순차적으로 업그레이드를 진행하시면 됩니다.
https://www.egovframe.go.kr/wiki/doku.php?id=egovframework:%EC%8B%A4%ED%96%89%ED%99%98%EA%B2%BD%EA%B0%80%EC%9D%B4%EB%93%9C
실행환경 업그레이드 가이드 (3.X -> 3.5)
실행환경 업그레이드 가이드 (3.5 -> 3.6)
실행환경 업그레이드 가이드 (3.6 -> 3.7)
실행환경 업그레이드 가이드 (3.7 -> 3.8)
실행환경 업그레이드 가이드 (3.8 -> 3.9)
실행환경 업그레이드 가이드 (3.9 -> 3.10)
실행환경 업그레이드 가이드 (3.10 -> 4.0)
감사합니다.
표준프레임워크센터입니다.
[no matching editors or conversion strategy found] 메시지는
특정 클래스를 대입하는데 해당 클래스로 변경할 수 없을 때 보여지는 메시지로
표준프레임워크 EgovPasswordEncoder 클래스를 Bean으로 등록할 때 사용한 아이디가
Spring Security의 PasswordEncoder 클래스명과 동일하여
주입받는 EgovARIACryptoServiceImpl 클래스에서 문제가 발생하는 것 같으므로
표준프레임워크 EgovPasswordEncoder 클래스의 Bean 아이디를
다른 이름으로 변경해 보시기 바랍니다.
또한, 실행환경 업그레이드 가이드는 다음과 같으니 참고하시길 바랍니다.
순차적으로 업그레이드를 진행하시면 됩니다.
https://www.egovframe.go.kr/wiki/doku.php?id=egovframework:%EC%8B%A4%ED%96%89%ED%99%98%EA%B2%BD%EA%B0%80%EC%9D%B4%EB%93%9C
실행환경 업그레이드 가이드 (3.X -> 3.5)
실행환경 업그레이드 가이드 (3.5 -> 3.6)
실행환경 업그레이드 가이드 (3.6 -> 3.7)
실행환경 업그레이드 가이드 (3.7 -> 3.8)
실행환경 업그레이드 가이드 (3.8 -> 3.9)
실행환경 업그레이드 가이드 (3.9 -> 3.10)
실행환경 업그레이드 가이드 (3.10 -> 4.0)
감사합니다.