일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 세션vs쿠키
- 인터셉터의 정의
- spring
- 김영한
- 쿠키의 정의
- controller
- spring MVC
- .orelseThrow
- @Controller
- jpa
- 유연한 컨트롤러1 - v5
- 세션의 정의
- 필터vs인터셉터
- Validation
- BindingResult
- optional
- 세션이란
- filter vs interceptor
- 필터의 정의
- 구글 보안 api 활용
- abap value in field Data Class error
- springSecurityFilterChain 오류
- java.lang.AssertionError
- 쿠키란
- 401오류
- application-properties
- n+1
- Testcode
- SpringMVC
- MVC
- Today
- Total
목록[WEB]오류들/Spring_code_error (5)
ABAP DUMP ERROR 24시
1. spring 시큐리티5.1 에서 5.2로 업데이트 될 때의 오류 => 내 문제 아니였다. 2. SecurityConfig 오류 public class SecurityConfig extends WebSecurityConfigurerAdapter { 해결방안> 역시나 SecurityConfig에서의 문제 !! @Override protected void configure(HttpSecurity http) throws Exception { 다음 @override 에서 중복 코드, 논리적 오류 발생 .antMatchers("/", "/css/**","/images/**","/js/**","h2-console/**").permitAll() 해놓고 .antMatchers("/api/v1/**").hasRole..

1. 해결 방법 application-oauth.properties 로 보안 api 를 받는다고 한다면 application-properties에 spring.profiles.include=oauth 를 기입하도록 하자! 2) application-properties와 application-oauth.properties가 같은 위치에 존재하는지 확인하자!(나는 코딩하다 건드려서 application properties의 위치가 옮겨져 있었다!) src/main/resources/application.propertiessrc/main/resources/application-oauth.properties 에 위치해 있어야 한다! 2.결론 application-가나다.properties 라고 만들었으면 spr..

원인 해결책 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..