Spring/에러(8)
-
SpringBoot MultipartFile upload가 안되던 에러
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: org.springframework.web.multipart.MultipartException: Current request is not a multipart request] with root cause $http({ method: 'POST', url: Config.serverURL, data: formData, headers: { 'Content-Type': undefined } }). ContentType을 명시하지말라는 말은 있었는데, 이게 진짜 undefined로 명시적으로 지워버려야 되..
2024.01.29 -
Spring Junit Test를 The import org.springframework.test cannot be resolved할때 에러
별건 아니다 메이븐에 종속성을 추가했는데 org.springframework spring-test 5.3.18 test junit5에서 test를 사용하던 도중 자꾸 cannot be resolve가 떴다 혹시나 해서 scope를 떼고 org.springframework spring-test 5.3.18 를 했더니 잘 된다. 단순히 테스트시에만 사용하도록 쓰인게 아니라 그런가..?
2022.06.20 -
Spring 스프링 java.lang.classnotfoundexception: com.sun.xml.internal.bind.v2.contextfactory 에러 해결 방법
https://hyejin.tistory.com/277 참조
2022.06.09 -
Junit5 테스트시 객체주입 안되는 에러
package springbook.user.service; import static org.hamcrest.CoreMatchers.equalTo; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.CoreMatchers.notNullValue; import static org.hamcrest.MatcherAssert.assertThat; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.springframework.beans.factory.annotation.Autowired; import org.sprin..
2022.05.11 -
토비의 스프링 4장 에러
assertThat(set.translate(null, null, sqlEx), is(DuplicateKeyException.class)); 가 에러가 났다. 잘못된 값이 들어왔다는 뜻인데 The method assertThat(T, Matcher
2022.05.10 -
spring 오류 [java.lang.NoClassDefFoundError: org/springframework/jdbc/datasource/TransactionAwareDataSourceProxy]
나는 토비의 스프링을 보면서 sts로 spring starter project?로 프로젝트를 시작했는데 그거 때문인지 몰라도 토비의 스프링에서는 poom의존성을 건드리는 부분이 없었는데 자꾸 이상하게 junit에서 에러가 나는것이었다... 그래서 검색하다보니 나온게 poom에 org.springframework spring-jdbc 를 추가해주면 된다. jdbc를 poom에 추가해주지 않아서 계속적으로 에러가 나는것이었다. 한시간동안 헤매서 알아냈다....
2022.04.26