일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 공부
- 오라클
- spring
- jsp
- for문
- 환경설정
- ORA-01407
- 자바
- 순환문
- while
- 오류모음
- 파워서플라이
- 설정
- MSI
- 전화번호부
- 인터페이스
- 오류
- 별 찍기
- ORA-02292
- 티스토리 블로그
- 무결성 제약조건
- 이클립스
- 백준
- Ajax
- 백준문제
- 스프링
- Oracle
- 백준문제풀이
- 깃허브 블로그
- 이클립스단축기
Archives
- Today
- Total
danDevlog
Caused by: org.springframework.beans.factory.BeanCreationExceptionf filterCains: Cannot resolve reference to bean ~security.web.defaultSecturityFilterChain 본문
오류 및 편의성 모음
Caused by: org.springframework.beans.factory.BeanCreationExceptionf filterCains: Cannot resolve reference to bean ~security.web.defaultSecturityFilterChain
단데기이 2022. 5. 8. 10:52728x90
java.lang.IllegalStateException: Failed to load ApplicationContext
at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:132)
해당 오류는 Spring Security의 회원 생성 테스트 과정에서 생긴 오류이다.
<security:authentication-manager> <!-- 인증 처리 관리자 -->
<security:authentication-provider
user-service-ref="customUserDetailService"> <!-- 인증처리 공급자 -->
<security:password-encoder ref=""/>
</security:authentication-provider>
</security:authentication-manager>
security-context.xml 파일에서 manager태그 부분에
<security:password-encoder ref=""/> 이 부분에서 ref를 ""로 했던것이 오류의 원인이였다.
암호화방식을 지정해주지 않았기때문에 오류가난것이다.
<security:authentication-manager> <!-- 인증 처리 관리자 -->
<security:authentication-provider
user-service-ref="customUserDetailService"> <!-- 인증처리 공급자 -->
<security:password-encoder ref="bcryptPasswordEncoder"/>
</security:authentication-provider>
</security:authentication-manager>
bcrypt 방식으로하겟다고 채워주면 오류없이 실행된다.
'오류 및 편의성 모음' 카테고리의 다른 글
Comments