일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Testcode
- .orelseThrow
- BindingResult
- @Controller
- n+1
- 세션이란
- abap value in field Data Class error
- MVC
- 필터의 정의
- 401오류
- 김영한
- 세션vs쿠키
- 인터셉터의 정의
- optional
- controller
- 쿠키란
- springSecurityFilterChain 오류
- spring
- 세션의 정의
- jpa
- 유연한 컨트롤러1 - v5
- Validation
- java.lang.AssertionError
- filter vs interceptor
- SpringMVC
- application-properties
- 필터vs인터셉터
- 구글 보안 api 활용
- spring MVC
- 쿠키의 정의
- Today
- Total
목록[WEB]오류들 (14)
ABAP DUMP ERROR 24시

원인 해결책 HelloController 가 2개가 존재했네..... 하나를 제거하자. java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:132) at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:124) at org.springframework.tes..
발단 스프링 부트와 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..

결론 @ComponentScan을 사용하는 AutoAppConfig의 패키지의 위치가 잘못되었다. @ComponentScan을 상위 패키지에 위치해 보자! @ComponentScan은 본인 하위 패키지만 스캔하므로!!!! 현재 AutoAppConfig가 Order라는 패키지 하위에 있기 때문에 이 패키지와 이 패키지를 포함한 하위만 컴포넌트 스캔하게 된다! Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'javaSpring.Spring.Member.InterFace.MemberRepository' available: expected at least 1 bean whic..

정리 jdk 관련 환경변수가 설정되지 안된 오류! 1.환경 변수에 시스템 변수의 새로 만들기(w) 클릭 2. 변수 이름 : JAVA_HOME 으로 설정 변수 값은 :jdk가 설치된 경로를 넣으면 된다. //참고 내 변수값은 다음과 같다. 아마 비슷한 경로에 설치되어 있을것이다. 끝.

정리 한글판 파일 => 설정 => 에디터 = > 파일 타입 => 파일형식이 파일 내용을 기반으로 자동으로 탐지됩니다. => index.html -클릭 영문판 File - Setteings - Editor - File Types => Auto-detect file type => index.html - 클릭 에서 index.html - 해주기! html로 잘 읽는다.

정리 application.preperties에 spring.profiles.active=local 를 추가한다. 만약 JavaMailSender의 @Profile("local") 로 설정하였으면 local 로 설정한다. 살펴보기 Parameter 1 of constructor in com.mywebpj.account.AccountService required a bean of type 'org.springframework.mail.javamail.JavaMailSender' that could not be found. JavaMailSender의 @Profile 설정을 확인후 application.properties에 다음을 추가한다. spring.profiles.active = local