반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- application-properties
- java.lang.AssertionError
- 인터셉터의 정의
- optional
- 세션이란
- 구글 보안 api 활용
- spring MVC
- SAP
- @Controller
- filter vs interceptor
- Validation
- abap
- jpa
- 쿠키의 정의
- n+1
- 쿠키란
- Testcode
- springSecurityFilterChain 오류
- BindingResult
- for all entries in
- controller
- 필터의 정의
- 김영한
- .orelseThrow
- abap value in field Data Class error
- MVC
- 필터vs인터셉터
- SpringMVC
- 401오류
Archives
- Today
- Total
목록401오류 (1)
SAP공장
java.lang.AssertionError: Status 401오류(SPRING_SECURITY)
발단 스프링 부트와 aws로 혼자 구현하는 웹 서비스를 따라 TestCode를 구현하는 도중 java.lang.AssertionError: Status 에러 발생 원인 SPRING_SECURITY 사용시 TestCode에서도 보안이 작동. 401 오류 서버는 클라이언트가 잘못된 자격 증명을 사용하여 로그인하려고 할 때 발생하므로 서버에서 사용자를 차단하기로 결정 해결책 @WithMockUser(roles="USER") @WithMockUser를 USER로 설정한 후에 다음과 같이 사용해서 해결한다. @WithMockUser(roles="USER") @Test public void hello가_리턴된다() throws Exception { String hello = "hello"; mvc.perform(g..
[WEB]오류들/Spring_code_error
2022. 4. 26. 17:14